summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
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;