From 7dc890057cc7f02df8f27ab988aa7055cbb3af65 Mon Sep 17 00:00:00 2001 From: James Moger Date: Tue, 8 Jan 2013 15:19:28 -0500 Subject: [PATCH] Wrap pushlog update code with an exception handler, just-in-case --- src/com/gitblit/GitServlet.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/gitblit/GitServlet.java b/src/com/gitblit/GitServlet.java index b55df04e..ff1ea7e9 100644 --- a/src/com/gitblit/GitServlet.java +++ b/src/com/gitblit/GitServlet.java @@ -318,8 +318,12 @@ public class GitServlet extends org.eclipse.jgit.http.server.GitServlet { } // update push log - PushLogUtils.updatePushLog(user, rp.getRepository(), commands); - logger.info(MessageFormat.format("{0} push log updated", repository.name)); + try { + PushLogUtils.updatePushLog(user, rp.getRepository(), commands); + logger.info(MessageFormat.format("{0} push log updated", repository.name)); + } catch (Exception e) { + logger.error(MessageFormat.format("Failed to update {0} pushlog", repository.name), e); + } // run Groovy hook scripts Set scripts = new LinkedHashSet(); -- 2.39.5