chiark / gitweb /
dgit: rpush: Work in splitting quilt modes, again
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 11:32:18 +0000 (12:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 11:43:51 +0000 (12:43 +0100)
The failure case is missing the obviously-necessary check that the
protocol version is, indeed, insufficient!

This was broken in
  045ec681a42fd823280cdec86a177309ddd741f0
  Split tags: Genrate maintainer-view tag too
which was first uploaded as part of dgit 2.0.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 0cdcd34ce6c7de624cd4a40a33a22db289097dd8..f1b322ad68450760d395ce4a1e71e0fa9ef29635 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -5171,7 +5171,7 @@ sub i_resp_want ($) {
     fail f_ "rpush negotiated protocol version %s".
        " which does not support quilt mode %s",
        $protovsn, $quilt_mode
-       if quiltmode_splitbrain;
+       if quiltmode_splitbrain && $protovsn < 4;
 
     my @localpaths = i_method "i_want", $keyword;
     printdebug "[[  $keyword @localpaths\n";