chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9308011
)
Rename $access_pushing to $access_forpush and read it via a function (nfc)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 19 Jul 2015 14:38:29 +0000
(15:38 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 19 Jul 2015 18:36:16 +0000
(19:36 +0100)
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index faffba6202a0cc6d0f6616a494aae807355eaa70..247b2432c2d7ab95ad07b86a498639f2bbbc61fa 100755
(executable)
--- 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;