From: Michael Tremer Date: Tue, 10 Oct 2017 12:30:33 +0000 (+0100) Subject: sources: Pull full commit X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7d966df981d8a34091bbe31023f734ec0aafebe;p=pbs.git sources: Pull full commit Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/sources.py b/src/buildservice/sources.py index 0122895f..e028478a 100644 --- a/src/buildservice/sources.py +++ b/src/buildservice/sources.py @@ -242,15 +242,15 @@ class Source(base.DataObject): @lazy_property def head_revision(self): - return self.backend.sources._get_commit("SELECT id FROM sources_commits \ + return self.backend.sources._get_commit("SELECT * FROM sources_commits \ WHERE source_id = %s ORDER BY id DESC LIMIT 1", self.id) def get_commits(self, limit=None, offset=None): - return self.backend.sources._get_commits("SELECT id FROM sources_commits \ + return self.backend.sources._get_commits("SELECT * FROM sources_commits \ WHERE source_id = %s ORDER BY id DESC LIMIT %s OFFSET %s", limit, offset) def get_commit(self, revision): - commit = self.backend.sources._get_commit("SELECT id FROM sources_commits \ + commit = self.backend.sources._get_commit("SELECT * FROM sources_commits \ WHERE source_id = %s AND revision = %s", self.id, revision) if commit: