From 69007029f122c3f77db044e879188cc12be3c2f6 Mon Sep 17 00:00:00 2001 From: Florian Zschocke <florian.zschocke@cycos.com> Date: Mon, 26 Aug 2013 06:39:57 -0400 Subject: [PATCH] Add method JGitUtils.createRepository(folder, name, shared) to create a new repository as if it was created with the --shared command line switch of git. --- src/main/java/com/gitblit/DownloadZipServlet.java | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gitblit/DownloadZipServlet.java b/src/main/java/com/gitblit/DownloadZipServlet.java index 8a4a710..7cdc54b 100644 --- a/src/main/java/com/gitblit/DownloadZipServlet.java +++ b/src/main/java/com/gitblit/DownloadZipServlet.java @@ -16,7 +16,6 @@ package com.gitblit; import java.io.IOException; -import java.net.SocketException; import java.text.MessageFormat; import java.text.ParseException; import java.util.Date; @@ -177,7 +176,7 @@ } response.flushBuffer(); - } catch (SocketException t) { + } catch (IOException t) { String message = t.getMessage() == null ? "" : t.getMessage().toLowerCase(); if (message.contains("reset") || message.contains("broken pipe")) { logger.error("Client aborted zip download: " + message); -- Gitblit v1.9.1