From a328fa2711d8361de15fb31f1fc434bf47c44d51 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Fri, 14 Nov 2008 13:45:52 +0100 Subject: [PATCH] fix off by one introduced by not counting first_commit when creating a new header --- git-dch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-dch b/git-dch index 6133a3cf..0ba7feda 100755 --- 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: -- 2.34.1