Do not barf on too long action description
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Reflog message is primarily about easier identification, and leaving truncated entry is much better than dying.
Signed-off-by Junio C Hamano <[email protected]>
--- builtin-fetch--tool.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
builtin-fetch--tool.c +1 -3
@@ -42,9 +42,7 @@ static int update_ref(const char *action,if (!rla) rla ="(reflog update)" ; - len =snprintf (msg,sizeof (msg),"%s: %s" , rla, action); -if (sizeof (msg) <= len) -die ("insanely long action" ); +snprintf (msg,sizeof (msg),"%s: %s" , rla, action); lock =lock_any_ref_for_update (refname, oldval);if (!lock)return 1 ;