From a75a1819f4c7fa5080ddb47545fe9012a842e5b3 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Wed, 20 Jul 2011 21:08:57 -0400
Subject: [PATCH] Misc fixes.

---
 src/com/gitblit/utils/JGitUtils.java |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/com/gitblit/utils/JGitUtils.java b/src/com/gitblit/utils/JGitUtils.java
index f8de429..2e14b67 100644
--- a/src/com/gitblit/utils/JGitUtils.java
+++ b/src/com/gitblit/utils/JGitUtils.java
@@ -166,7 +166,6 @@
 		}
 		fetch.setRefSpecs(specs);
 		FetchResult result = fetch.call();
-		repository.close();
 		return result;
 	}
 
@@ -299,7 +298,7 @@
 
 	/**
 	 * Determine if a repository has any commits. This is determined by checking
-	 * for 1 or more heads.
+	 * the objects/info and objects/pack folders.
 	 * 
 	 * @param repository
 	 * @return true if the repository has commits

--
Gitblit v1.9.1