From 90109b320d45520cf5721de08d761ad06c0445ab Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Mon, 28 Nov 2005 02:54:05 -0800 Subject: [PATCH] git-mv: quote $src in regexp properly. Noticed and fixed by Matthias Urlichs and Josef Weidendorfer. Signed-off-by: Junio C Hamano --- git-mv.perl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; } -- 2.26.2