projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bisect: quote pathnames for eval safety.
[git.git]
/
git-mv.perl
diff --git
a/git-mv.perl
b/git-mv.perl
index
ac19876
..
53046ba
100755
(executable)
--- a/
git-mv.perl
+++ b/
git-mv.perl
@@
-108,7
+108,7
@@
while(scalar @srcArgs > 0) {
}
}
}
}
- if (($bad eq "") && ($
src eq $dstDir
)) {
+ if (($bad eq "") && ($
dst =~ /^$safesrc\//
)) {
$bad = "can not move directory '$src' into itself";
}
$bad = "can not move directory '$src' into itself";
}
@@
-151,6
+151,11
@@
while(scalar @srcs > 0) {
if (!$opt_n) {
if (!rename($src,$dst)) {
$bad = "renaming '$src' failed: $!";
if (!$opt_n) {
if (!rename($src,$dst)) {
$bad = "renaming '$src' failed: $!";
+ if ($opt_k) {
+ print "Warning: skipped: $bad\n";
+ $bad = "";
+ next;
+ }
last;
}
}
last;
}
}