From: Guido Günther Date: Fri, 14 Jan 2011 16:22:36 +0000 (+0100) Subject: Use the latest commit instead of the earliest one X-Git-Tag: debian/0.5.17~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d5f78a1f531acb7a2f5d75ac29a8808a7c46024;p=tools%2Fgit-buildpackage.git Use the latest commit instead of the earliest one when guessing the compression type for pristine-tar. Closes; #609980 Thanks: Andreas Rottmann for the detailed report --- diff --git a/git-buildpackage b/git-buildpackage index 78212bf..ccca18b 100755 --- a/git-buildpackage +++ b/git-buildpackage @@ -192,7 +192,7 @@ def guess_comp_type(repo, comp_type, srcpkg, upstream_version): regex = 'pristine-tar .* %s_%s\.orig.tar\.' % (srcpkg, upstream_version) commits = repo.grep_log(regex, PristineTar.branch) if commits: - commit = commits[0] + commit = commits[-1] gbp.log.debug("Found pristine-tar commit at '%s'" % commit) else: commit = PristineTar.branch