From c721a5d012ac3b841e1203ccd7fb60981a345c83 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 30 Oct 2012 17:28:28 -0400 Subject: [PATCH] Replaced fork icon --- src/com/gitblit/DownloadZipServlet.java | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/com/gitblit/DownloadZipServlet.java b/src/com/gitblit/DownloadZipServlet.java index 209272f..2655934 100644 --- a/src/com/gitblit/DownloadZipServlet.java +++ b/src/com/gitblit/DownloadZipServlet.java @@ -101,11 +101,16 @@ if (!StringUtils.isEmpty(objectId)) { name += "-" + objectId; } - + Repository r = GitBlit.self().getRepository(repository); if (r == null) { - error(response, MessageFormat.format("# Error\nFailed to find repository {0}", repository)); - return; + if (GitBlit.self().isCollectingGarbage(repository)) { + error(response, MessageFormat.format("# Error\nGitblit is busy collecting garbage in {0}", repository)); + return; + } else { + error(response, MessageFormat.format("# Error\nFailed to find repository {0}", repository)); + return; + } } RevCommit commit = JGitUtils.getCommit(r, objectId); if (commit == null) { -- Gitblit v1.9.1