@matheusbsbs / matheus-bagliano / commits / 90109b320d
Fork 0

git-mv: quote $src in regexp properly.

Noticed and fixed by Matthias Urlichs and Josef Weidendorfer. Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Nov 28, 2005 at 02:54 UTC 90109b320d45520cf5721de08d761ad06c0445ab
1 file changed +1 -1
git-mv.perl
+1 -1
@@ -108,7 +108,7 @@ while(scalar @srcArgs > 0) {
108 }
109 }
110
111 - if (($bad eq "") && ($dst =~ /^$src\//)) {
111 + if (($bad eq "") && ($dst =~ /^$safesrc\//)) {
112 $bad = "can not move directory '$src' into itself";
113 }
114