summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2015-06-15 10:36:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2015-06-15 10:36:36 -0700
commitf657b53d5bc6869cbfe7d4e9e943dcec4c2f128e (patch)
treefe28819c0ffe24a509d936d0b00dcda6a4c21d56
parent1c5915b1030036708e8431c4896250b3ad789b74 (diff)
downloadgitweb2cgit-master.tar.gz
gitweb2cgit-master.tar.xz
gitweb2cgit-master.zip
Correct the updated handling of tagsHEADmaster
-rwxr-xr-xgitweb2cgit.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitweb2cgit.cgi b/gitweb2cgit.cgi
index 6b7461c..1c07bc8 100755
--- a/gitweb2cgit.cgi
+++ b/gitweb2cgit.cgi
@@ -116,7 +116,7 @@ delete $parm{'hb'};
# Tag actions which require special handling
if ($a eq 'shortlog' || $a eq 'log') {
if ($h =~ m:^refs/tags/:) {
- $action = 'tag';
+ $action = '/tag/';
}
}
@@ -135,7 +135,7 @@ $parm{'s'} = $s if (defined($s));
delete $parm{'o'};
# Tags special handling
-if ($a eq 'tag') {
+if ($action eq '/tag/') {
$parm{'id'} =~ s:^refs/tags/::; # Drop leading refs/tags
}