зеркало из https://github.com/microsoft/git.git
Git::unquote_path(): throw an exception on bad path
This is what the other routines in Git.pm do if there's an error. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
4cebfac944
Коммит
d5f28b7241
|
@ -1493,8 +1493,8 @@ when not using -z or when parsing the output of diff -u.
|
||||||
$_ = $2;
|
$_ = $2;
|
||||||
last;
|
last;
|
||||||
}
|
}
|
||||||
# This is malformed -- just return it as-is for now.
|
# This is malformed
|
||||||
return $_[0];
|
throw Error::Simple("invalid quoted path $_[0]");
|
||||||
}
|
}
|
||||||
$_ = $remainder;
|
$_ = $remainder;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче