From: Ian Jackson Date: Sun, 19 Jul 2015 14:38:29 +0000 (+0100) Subject: Rename $access_pushing to $access_forpush and read it via a function (nfc) X-Git-Tag: debian/1.0~11 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=175b4406b72856290aca44d0f06671a452537dfe;ds=sidebyside Rename $access_pushing to $access_forpush and read it via a function (nfc) --- diff --git a/dgit b/dgit index faffba62..247b2432 100755 --- a/dgit +++ b/dgit @@ -547,10 +547,14 @@ sub access_quirk () { return ('none',undef); } -our $access_pushing = 0; +our $access_forpush = 0; sub pushing () { - $access_pushing = 1; + $access_forpush = 1; +} + +sub access_forpush () { + return $access_forpush; } sub access_distros () { @@ -568,7 +572,7 @@ sub access_distros () { unshift @l, $instead_distro; @l = grep { defined } @l; - if ($access_pushing) { + if (access_forpush()) { @l = map { ("$_/push", $_) } @l; } @l;