git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
4cebfac
)
Git::unquote_path(): throw an exception on bad path
author
Phillip Wood
<redacted>
Fri, 30 Jun 2017 09:49:11 +0000
(10:49 +0100)
committer
Junio C Hamano
<redacted>
Fri, 30 Jun 2017 15:04:59 +0000
(08:04 -0700)
This is what the other routines in Git.pm do if there's an error.
Signed-off-by: Phillip Wood <redacted>
Signed-off-by: Junio C Hamano <redacted>
perl/Git.pm
patch
|
blob
|
history
diff --git
a/perl/Git.pm
b/perl/Git.pm
index 3179e6efb29a1a88df8f90aa458fbe5f9a41d419..f4b56e6d4d38cbc4365ecfc9073f5caf3a05377a 100644
(file)
--- 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;
}
git clone https://git.99rst.org/PROJECT