From: Ian Jackson Date: Sat, 16 Jul 2016 17:20:57 +0000 (+0100) Subject: Split brain: In dopush, get HEAD earlier (nfc) X-Git-Tag: archive/debian/2.0~261 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=c1c45feee9c79e9a2dfe20771405ba4f8d548642 Split brain: In dopush, get HEAD earlier (nfc) --- diff --git a/dgit b/dgit index a5685375..b63910ed 100755 --- a/dgit +++ b/dgit @@ -1995,6 +1995,8 @@ END my $format = getfield $dsc, 'Format'; printdebug "format $format\n"; + my $head = git_rev_parse('HEAD'); + if (madformat($format)) { # user might have not used dgit build, so maybe do this now: commit_quilty_patch(); @@ -2025,7 +2027,6 @@ END failedcmd @diffcmd; } } - my $head = git_rev_parse('HEAD'); if (!$changesfile) { my $pat = changespat $cversion; my @cs = glob "$buildproductsdir/$pat";