projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc6c0e8
)
fix patch to not strip a leading "." unless it's part of a path
author
Joey Hess
<joey@kitenet.net>
Tue, 4 Jan 2011 19:59:28 +0000
(15:59 -0400)
committer
Joey Hess
<joey@kitenet.net>
Tue, 4 Jan 2011 19:59:28 +0000
(15:59 -0400)
For correctness only, since a tag named ".foo" is very unlikely.
IkiWiki/Plugin/tag.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/tag.pm
b/IkiWiki/Plugin/tag.pm
index 707cc5da1b5dbd4941c8e78a0944485503f38779..ff419dff220dc6afabce49939c494b09f6e23348 100644
(file)
--- a/
IkiWiki/Plugin/tag.pm
+++ b/
IkiWiki/Plugin/tag.pm
@@
-61,7
+61,7
@@
sub tagname ($) {
if (defined $config{tagbase}) {
$tag =~ s!^/\Q$config{tagbase}\E/!!;
} else {
- $tag =~ s!^\.?/
?
!!;
+ $tag =~ s!^\.?/!!;
}
return $tag;
}