Browse Source

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>
maint
Junio C Hamano 20 years ago
parent
commit
90109b320d
  1. 2
      git-mv.perl

2
git-mv.perl

@ -108,7 +108,7 @@ while(scalar @srcArgs > 0) { @@ -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";
}


Loading…
Cancel
Save