summaryrefslogtreecommitdiff
path: root/git-mv.perl
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-28 10:54:05 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-28 10:54:05 (GMT)
commit90109b320d45520cf5721de08d761ad06c0445ab (patch)
treefc9d020d86672b719a9f9971b97a2e896534a099 /git-mv.perl
parent0dccc7dceef03e4231b24c9e126110b338e1c1e1 (diff)
downloadgit-90109b320d45520cf5721de08d761ad06c0445ab.zip
git-90109b320d45520cf5721de08d761ad06c0445ab.tar.gz
git-90109b320d45520cf5721de08d761ad06c0445ab.tar.bz2
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>
Diffstat (limited to 'git-mv.perl')
-rwxr-xr-xgit-mv.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-mv.perl b/git-mv.perl
index 65b1dcf..53046ba 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";
}