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 65b1dcfdf2314e2eb8b7bfd1124210ad73269b10..53046bafd66ebc4c3a7ef5c65a6363ef5201dcdd 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";
}