Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2017-06-30 12:49:11 +0300
committerJunio C Hamano <gitster@pobox.com>2017-06-30 18:04:59 +0300
commitd5f28b724192e9172d0a013dd7b2ca20fd1bbb9b (patch)
tree366ee878004c74775f7f783f5c724df2ef0dfa4a /perl/Git.pm
parent4cebfac94412ccbd077c6776f7c8db1914bafde2 (diff)
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.pm4
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;
}