From: Ian Jackson Date: Sun, 17 Jun 2018 16:25:16 +0000 (+0100) Subject: git-debrebase: divergence checking: Do not mind if a ref we are checking does not... X-Git-Tag: archive/debian/5.0~13 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=578fe1b430e849067abd30c5ed0a92dc9456bb09;p=dgit.git git-debrebase: divergence checking: Do not mind if a ref we are checking does not exist Signed-off-by: Ian Jackson --- diff --git a/git-debrebase b/git-debrebase index 3de0aa9f..1295360d 100755 --- a/git-debrebase +++ b/git-debrebase @@ -1018,7 +1018,7 @@ sub record_ffq_prev_deferred () { } return if $invert; my $lrval = git_get_ref $lrref; - return unless defined $lrval; + return unless length $lrval; if (is_fast_fwd $lrval, $currentval) { print "OK, you are ahead of $lrref\n" or die $!;