From: Ian Jackson Date: Mon, 9 Jan 2017 15:50:48 +0000 (+0000) Subject: dgit: rpush: Provide $we_are_initiator X-Git-Tag: archive/debian/3.0~10 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=130a702aa3a3253bf8569e9110af88af8c7dc7b0;p=dgit.git dgit: rpush: Provide $we_are_initiator No functional change yet. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index d62694a9..89073a5c 100755 --- a/dgit +++ b/dgit @@ -73,6 +73,7 @@ our $dodep14tag; our $dodep14tag_re = 'want|no|always'; our $split_brain_save; our $we_are_responder; +our $we_are_initiator; our $initiator_tempdir; our $patches_applied_dirtily = 00; our $tagformat_want; @@ -4457,6 +4458,8 @@ sub cmd_rpush { my @cmd = (@ssh, $host, shellquote @rdgit); debugcmd "+",@cmd; + $we_are_initiator=1; + if (defined $initiator_tempdir) { rmtree $initiator_tempdir; mkdir $initiator_tempdir, 0700 or die "$initiator_tempdir: $!";