summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-19 15:38:29 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-07-19 19:36:16 +0100
commit175b4406b72856290aca44d0f06671a452537dfe (patch)
tree0f251eeb8698941022823f1c73f89a2d609cddde /dgit
parent9308011c98e2dc4d930efb0991fe92467c23c4ad (diff)
Rename $access_pushing to $access_forpush and read it via a function (nfc)
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit10
1 files changed, 7 insertions, 3 deletions
diff --git a/dgit b/dgit
index faffba6..247b243 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;