diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-28 02:54:05 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-28 02:54:05 -0800 |
commit | 90109b320d45520cf5721de08d761ad06c0445ab (patch) | |
tree | fc9d020d86672b719a9f9971b97a2e896534a099 | |
parent | config.c: constness tightening to avoid compilation warning. (diff) | |
download | tgif-90109b320d45520cf5721de08d761ad06c0445ab.tar.xz |
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>
-rwxr-xr-x | git-mv.perl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-mv.perl b/git-mv.perl index 65b1dcfdf2..53046bafd6 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"; } |