mirror of
https://github.com/git/git.git
synced 2025-04-11 12:56:43 +00:00
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>
This commit is contained in:
parent
0dccc7dcee
commit
90109b320d
@ -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…
x
Reference in New Issue
Block a user