fix off by one
authorGuido Günther <agx@sigxcpu.org>
Fri, 14 Nov 2008 12:45:52 +0000 (13:45 +0100)
committerGuido Guenther <agx@sigxcpu.org>
Fri, 14 Nov 2008 12:46:35 +0000 (13:46 +0100)
introduced by not counting first_commit when creating a new header

git-dch

diff --git a/git-dch b/git-dch
index 6133a3cf2edbf28d8da060fcbfc273a5dd79c8bd..0ba7fedaf9ed9cd54bb8490603fae108bcd22d22 100755 (executable)
--- a/git-dch
+++ b/git-dch
@@ -249,6 +249,7 @@ def main(argv):
     changelog = 'debian/changelog'
     until = 'HEAD'
     found_snapshot_header = False
+    first_commit = None
 
     parser = GbpOptionParser(command=os.path.basename(argv[0]), prefix='',
                              usage='%prog [options] paths')
@@ -359,7 +360,7 @@ def main(argv):
         if commits:
             shortlog_to_dch(repo, commits, options)
             fixup_trailer()
-        else:
+        elif not first_commit:
             print "No changes detected from %s to %s." % (since, until)
 
         if options.release: