aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorFlorian Wagner <fl.wagner@uni-tuebingen.de>2016-03-17 12:20:30 +0100
committerJoey Hess <joeyh@joeyh.name>2016-03-17 11:01:27 -0400
commitbbdba8d770b73bc44f55219615b360484b7d240f (patch)
treeb1cc7ae7eb7d19a8c83217a06110269b1d0bada6 /IkiWiki
parent4f665aebe495cbf02a85ca015859c12ab6154021 (diff)
downloadikiwiki-bbdba8d770b73bc44f55219615b360484b7d240f.tar
ikiwiki-bbdba8d770b73bc44f55219615b360484b7d240f.tar.gz
Correctly handle filenames starting with a dash in add/rm/mv.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/git.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/git.pm b/IkiWiki/Plugin/git.pm
index f963f06ba..bfca933fd 100644
--- a/IkiWiki/Plugin/git.pm
+++ b/IkiWiki/Plugin/git.pm
@@ -654,7 +654,7 @@ sub rcs_add ($) {
ensure_committer();
- run_or_cry('git', 'add', $file);
+ run_or_cry('git', 'add', '--', $file);
}
sub rcs_remove ($) {
@@ -664,7 +664,7 @@ sub rcs_remove ($) {
ensure_committer();
- run_or_cry('git', 'rm', '-f', $file);
+ run_or_cry('git', 'rm', '-f', '--', $file);
}
sub rcs_rename ($$) {
@@ -672,7 +672,7 @@ sub rcs_rename ($$) {
ensure_committer();
- run_or_cry('git', 'mv', '-f', $src, $dest);
+ run_or_cry('git', 'mv', '-f', '--', $src, $dest);
}
sub rcs_recentchanges ($) {