X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=dgit;fp=dgit;h=247b2432c2d7ab95ad07b86a498639f2bbbc61fa;hb=175b4406b72856290aca44d0f06671a452537dfe;hp=faffba6202a0cc6d0f6616a494aae807355eaa70;hpb=9308011c98e2dc4d930efb0991fe92467c23c4ad;p=dgit.git 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;