Skip to content

Commit

Permalink
git-mv: quote $src in regexp properly.
Browse files Browse the repository at this point in the history
Noticed and fixed by Matthias Urlichs and Josef Weidendorfer.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 28, 2005
1 parent 0dccc7d commit 90109b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-mv.perl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ ()
}
}

if (($bad eq "") && ($dst =~ /^$src\//)) {
if (($bad eq "") && ($dst =~ /^$safesrc\//)) {
$bad = "can not move directory '$src' into itself";
}

Expand Down

0 comments on commit 90109b3

Please sign in to comment.