chiark / gitweb /
Mirroring: Tests: check that we do not mirror private repos
[dgit.git] / Debian / Dgit.pm
index 48aae188560ddc825351b2cd09d0d8cebc0e475d..2938ae11855b5f48208af630792ec9a37c66b8a9 100644 (file)
@@ -101,10 +101,10 @@ sub debugcmd {
     printcmd(\*DEBUG,$debugprefix.$extraprefix,@_) if $debuglevel>0;
 }
 
-sub debiantag ($) { 
-    my ($v) = @_;
+sub debiantag ($$) { 
+    my ($v,$distro) = @_;
     $v =~ y/~:/_%/;
-    return "debian/$v";
+    return "$distro/$v";
 }
 
 sub server_branch ($) { return "$branchprefix/$_[0]"; }
@@ -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)), $_;
 }