fix patch to not strip a leading "." unless it's part of a path

For correctness only, since a tag named ".foo" is very unlikely.
master
Joey Hess 2011-01-04 15:59:28 -04:00
parent fc6c0e8b5b
commit 1b1b3927ee
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ sub tagname ($) {
if (defined $config{tagbase}) {
$tag =~ s!^/\Q$config{tagbase}\E/!!;
} else {
$tag =~ s!^\.?/?!!;
$tag =~ s!^\.?/!!;
}
return $tag;
}