projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dccc7d
)
git-mv: quote $src in regexp properly.
author
Junio C Hamano
<junkio@cox.net>
Mon, 28 Nov 2005 10:54:05 +0000
(
02:54
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 28 Nov 2005 10:54:05 +0000
(
02:54
-0800)
Noticed and fixed by Matthias Urlichs and Josef Weidendorfer.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-mv.perl
patch
|
blob
|
history
diff --git
a/git-mv.perl
b/git-mv.perl
index
65b1dcf
..
53046ba
100755
(executable)
--- a/
git-mv.perl
+++ b/
git-mv.perl
@@
-108,7
+108,7
@@
while(scalar @srcArgs > 0) {
}
}
- if (($bad eq "") && ($dst =~ /^$src\//)) {
+ if (($bad eq "") && ($dst =~ /^$s
afes
rc\//)) {
$bad = "can not move directory '$src' into itself";
}