chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid use of "my $_", which is not portable
[dgit.git]
/
Debian
/
Dgit.pm
diff --git
a/Debian/Dgit.pm
b/Debian/Dgit.pm
index 48aae188560ddc825351b2cd09d0d8cebc0e475d..37cbc51b68e52116705d1988cf040eef36919bda 100644
(file)
--- a/
Debian/Dgit.pm
+++ b/
Debian/Dgit.pm
@@
-211,7
+211,7
@@
sub git_for_each_ref ($$;$) {
sub git_get_ref ($) {
# => '' if no such ref
my ($refname) = @_;
-
my
$_ = $refname;
+
local
$_ = $refname;
s{^refs/}{[r]efs/} or die "$refname $_ ?";
return cmdoutput qw(git for-each-ref --format=%(objectname)), $_;
}