summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/utils/JGitUtils.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/gitblit/utils/JGitUtils.java b/src/com/gitblit/utils/JGitUtils.java
index f8de4299..2e14b679 100644
--- a/src/com/gitblit/utils/JGitUtils.java
+++ b/src/com/gitblit/utils/JGitUtils.java
@@ -166,7 +166,6 @@ public class JGitUtils {
}
fetch.setRefSpecs(specs);
FetchResult result = fetch.call();
- repository.close();
return result;
}
@@ -299,7 +298,7 @@ public class JGitUtils {
/**
* 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