From: Ian Jackson Date: Fri, 23 Aug 2013 11:15:10 +0000 (+0100) Subject: Fix comparison of archive's .dsc's hash and git branch head to DTRT. X-Git-Tag: debian/0.8~2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=670141eff1905429cfd4f791664bf42e916ce49e;p=dgit.git Fix comparison of archive's .dsc's hash and git branch head to DTRT. --- diff --git a/debian/changelog b/debian/changelog index a57cd2f3..79fcea03 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,12 @@ dgit (0.8) unstable; urgency=low + * Fix comparison of archive's .dsc's hash and git branch head + to DTRT. * When creating repos in dgit-repos (using the ssh-cmd method), copy _template rather than using mkdir and git init. Closes: #720522. - -- Ian Jackson Fri, 23 Aug 2013 12:03:25 +0100 + -- dgit (0.7) unstable; urgency=low diff --git a/dgit b/dgit index 94adcb5f..8911c8e2 100755 --- a/dgit +++ b/dgit @@ -659,11 +659,12 @@ sub fetch_from_archive () { if (defined $dsc_hash) { fail "missing git history even though dsc has hash -". " could not find commit $dsc_hash". - " (should be in ".access_giturl()."#".rref().")" + " (should be in ".access_giturl()."#".rrref().")" unless $upload_hash; $hash = $dsc_hash; ensure_we_have_orig(); - if (is_fast_fwd($dsc_hash,$upload_hash)) { + if ($dsc_hash eq $upload_hash) { + } elsif (is_fast_fwd($dsc_hash,$upload_hash)) { print STDERR <