Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b24da2c
)
Correctly handle filenames starting with a dash in add/rm/mv.
author
Florian Wagner
<fl.wagner@uni-tuebingen.de>
Thu, 17 Mar 2016 11:20:30 +0000
(12:20 +0100)
committer
Simon McVittie
<smcv@debian.org>
Wed, 11 Jan 2017 19:55:08 +0000
(19:55 +0000)
(cherry picked from commit
bbdba8d770b73bc44f55219615b360484b7d240f
)
IkiWiki/Plugin/git.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/git.pm
b/IkiWiki/Plugin/git.pm
index 0140768ff957ee15b97f2536c6e656cc847da369..51f711a28108160d3023a065dcc1d3575f360c1f 100644
(file)
--- 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 ($) {