Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ref-filter: Do not abruptly die when using the 'lstrip=<N>' option
[gitweb.git]
/
ref-filter.c
diff --git
a/ref-filter.c
b/ref-filter.c
index cccd86f574dad26c663ecb5eb722c77d8c55b792..4fd6ef186cc430b34be9f15335e5af72e67bbc1c 100644
(file)
--- a/
ref-filter.c
+++ b/
ref-filter.c
@@
-1099,8
+1099,7
@@
static const char *lstrip_ref_components(const char *refname, unsigned int len)
while (remaining) {
switch (*start++) {
case '\0':
- die(_("ref '%s' does not have %ud components to :lstrip"),
- refname, len);
+ return "";
case '/':
remaining--;
break;