chiark / gitweb /
When synthesing a commit from a .dsc from the archive, stop internal git reset from...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 11:52:05 +0000 (12:52 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jul 2016 16:42:03 +0000 (17:42 +0100)
debian/changelog
dgit

index 30db5c982766c157fb1010b32a1aeec5979477ed..46e23dcdb1f65cb3d20f6483928ebcaaed5a3bc6 100644 (file)
@@ -44,6 +44,8 @@ dgit (1.5~~) unstable; urgency=medium
     messages.  Closes:#800078.
   * Pass --ch:* and -v options to dpkg-buildpackage when building
     source.  Fixes bad Perl poetry syntax.  Closes:#829121.
+  * When synthesing a commit from a .dsc from the archive, stop
+    internal git reset from printing a confusing message about HEAD.
 
   Test suite:
   * When sbuild fails, do not crash due to sed not finding the log
diff --git a/dgit b/dgit
index 81c5ff91558733cd61ec492f370f61777ae1e49f..8404a19c2509021f1b8242bac094dc86d0d6e523 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1448,7 +1448,7 @@ END
     my $cversion = getfield $clogp, 'Version';
     progress "synthesised git commit from .dsc $cversion";
     if ($lastpush_hash) {
-       runcmd @git, qw(reset --hard), $lastpush_hash;
+       runcmd @git, qw(reset -q --hard), $lastpush_hash;
        runcmd qw(sh -ec), 'dpkg-parsechangelog >>../changelogold.tmp';
        my $oldclogp = parsecontrol('../changelogold.tmp','previous changelog');
        my $oversion = getfield $oldclogp, 'Version';