From 55f12281eebd4352753e45a31ee4e69bfbc5c48e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 22 Sep 2016 12:35:32 +0100 Subject: Split brain: Only send rpush maint-view param if $maintviewhead Fixes a bug where rpush would always make two tags even for a non-`3.0 (quilt)' package. Signed-off-by: Ian Jackson --- dgit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dgit') diff --git a/dgit b/dgit index 77eae6b..57c0e5c 100755 --- a/dgit +++ b/dgit @@ -2749,7 +2749,7 @@ END responder_send_command("param head $dgithead"); responder_send_command("param csuite $csuite"); responder_send_command("param tagformat $tagformat"); - if (quiltmode_splitbrain) { + if (defined $maintviewhead) { die unless ($protovsn//4) >= 4; responder_send_command("param maint-view $maintviewhead"); } -- cgit v1.2.3