From: Junio C Hamano Date: Mon, 28 Nov 2005 10:54:05 +0000 (-0800) Subject: git-mv: quote $src in regexp properly. X-Git-Tag: v0.99.9l^2~40 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=90109b320d45520cf5721de08d761ad06c0445ab;p=git.git git-mv: quote $src in regexp properly. Noticed and fixed by Matthias Urlichs and Josef Weidendorfer. Signed-off-by: Junio C Hamano --- diff --git a/git-mv.perl b/git-mv.perl index 65b1dcfdf..53046bafd 100755 --- 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 =~ /^$safesrc\//)) { $bad = "can not move directory '$src' into itself"; }