summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/AddIndexedBranch.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-04-15 08:18:02 -0400
committerJames Moger <james.moger@gitblit.com>2013-04-15 08:18:02 -0400
commit843c42bafae020e2e0e6d49befc6db960f61c66c (patch)
tree0d765db364e389dea0bcad47f04dcdc2a59bd47b /src/main/java/com/gitblit/AddIndexedBranch.java
parent47dc64a5d4b10edf2ef418d3e4b428a33420a2a2 (diff)
downloadgitblit-843c42bafae020e2e0e6d49befc6db960f61c66c.tar.gz
gitblit-843c42bafae020e2e0e6d49befc6db960f61c66c.zip
Completed migration to JGit 3.0.0-SNAPSHOT
Diffstat (limited to 'src/main/java/com/gitblit/AddIndexedBranch.java')
-rw-r--r--src/main/java/com/gitblit/AddIndexedBranch.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/gitblit/AddIndexedBranch.java b/src/main/java/com/gitblit/AddIndexedBranch.java
index 67b77428..e2f3dacf 100644
--- a/src/main/java/com/gitblit/AddIndexedBranch.java
+++ b/src/main/java/com/gitblit/AddIndexedBranch.java
@@ -25,9 +25,8 @@ import java.util.TreeSet;
import org.eclipse.jgit.lib.Repository;
import org.eclipse.jgit.lib.RepositoryCache.FileKey;
-import org.eclipse.jgit.storage.file.FileBasedConfig;
+import org.eclipse.jgit.lib.StoredConfig;
import org.eclipse.jgit.storage.file.FileRepositoryBuilder;
-import org.eclipse.jgit.internal.storage.file.FileRepository;
import org.eclipse.jgit.util.FS;
import com.beust.jcommander.JCommander;
@@ -88,8 +87,8 @@ public class AddIndexedBranch {
try {
// load repository config
File gitDir = FileKey.resolve(new File(folder, repo), FS.DETECTED);
- FileRepository repository = (FileRepository)new FileRepositoryBuilder().setGitDir(gitDir).build();
- FileBasedConfig config = repository.getConfig();
+ Repository repository = new FileRepositoryBuilder().setGitDir(gitDir).build();
+ StoredConfig config = repository.getConfig();
config.load();
Set<String> indexedBranches = new LinkedHashSet<String>();