chiark / gitweb /
import-dsc: Introduce $newhash (nfc)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 23 Oct 2016 19:19:22 +0000 (20:19 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 Oct 2016 19:50:47 +0000 (19:50 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 87419c2..a1ca045 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -5347,8 +5347,10 @@ END
     my @mergeinputs = generate_commits_from_dsc();
     die unless @mergeinputs == 1;
 
+    my $newhash = $mergeinputs[0]{Commit};
+
     my @cmd = (@git, qw(update-ref -m), "dgit import-dsc: $info",
-              $dstbranch, $mergeinputs[0]{Commit});
+              $dstbranch, $newhash);
     runcmd @cmd;
     progress "dgit: import-dsc results are in in git ref $dstbranch";
 }