diff options
author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2017-06-30 11:49:11 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-30 17:04:59 +0200 |
commit | d5f28b724192e9172d0a013dd7b2ca20fd1bbb9b (patch) | |
tree | 366ee878004c74775f7f783f5c724df2ef0dfa4a /perl/Git.pm | |
parent | Git::unquote_path(): handle '\a' (diff) | |
download | git-d5f28b724192e9172d0a013dd7b2ca20fd1bbb9b.tar.xz git-d5f28b724192e9172d0a013dd7b2ca20fd1bbb9b.zip |
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>
Diffstat (limited to 'perl/Git.pm')
-rw-r--r-- | perl/Git.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl/Git.pm b/perl/Git.pm index 3179e6efb2..f4b56e6d4d 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -1493,8 +1493,8 @@ when not using -z or when parsing the output of diff -u. $_ = $2; last; } - # This is malformed -- just return it as-is for now. - return $_[0]; + # This is malformed + throw Error::Simple("invalid quoted path $_[0]"); } $_ = $remainder; } |