From: Ian Jackson Date: Sun, 31 May 2015 16:45:28 +0000 (+0100) Subject: dgit: Gate sending "previously" on deliberately_not_fast_forward not $forceflag X-Git-Tag: debian/0.30~111 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=436142c37d5a7925d6452651275382e935533e82 dgit: Gate sending "previously" on deliberately_not_fast_forward not $forceflag $forceflag will only be set if we actually think the ref is not fast forwarding. But the --deliberately flags may cause a repo reset which will require us to mention the previous state, even if the push appears to be ff. --- diff --git a/dgit b/dgit index a9fab5e1..863104bf 100755 --- a/dgit +++ b/dgit @@ -1661,7 +1661,7 @@ sub dopush ($) { responder_send_command("param head $head"); responder_send_command("param csuite $csuite"); - if ($forceflag) { + if (deliberately_not_fast_forward) { git_for_each_ref(lrfetchrefs, sub { my ($objid,$objtype,$lrfetchrefname,$reftail) = @_; my $rrefname= substr($lrfetchrefname, length(lrfetchrefs) + 1);