Skip to contentSkip to conversation

stop it from failing silently when git apply patch and show err info

PATCH New simon gao 1 participant 1 message Jul 25, 2019

lore
Share & tools
lore

simon gao

author
#0 lore raw

PATCH 1/1 stop it from failing silently when git apply patch and show err info

---
 apply.c | 1 +
 1 file changed, 1 insertion(+)
apply.c +1 -0
index 4992eca..f66a6ff 100644
@@ -2094,6 +2094,7 @@ static int use_patch(struct apply_state *state, struct patch *p)
 	if (state->prefix && *state->prefix) {
 		const char *rest;
 		if (!skip_prefix(pathname, state->prefix, &rest) || !*rest)
+            error(_("%s doesn't contain the prefix(%s)"), pathname, state->prefix);
 			return 0;
 	}
 
Signature · 1 line
1.8.3.1