diff options
Diffstat (limited to 'src/com/gitblit/GitServlet.java')
-rw-r--r-- | src/com/gitblit/GitServlet.java | 8 |
1 files 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<String> scripts = new LinkedHashSet<String>();
|