Skip to content

Commit 2e0e60f

Browse files
committed
Remove debug listing of branches
1 parent 65ca95b commit 2e0e60f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/main/java/org/commonwl/view/git/GitService.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.apache.commons.codec.digest.DigestUtils;
2323
import org.commonwl.view.researchobject.HashableAgent;
2424
import org.eclipse.jgit.api.Git;
25-
import org.eclipse.jgit.api.ListBranchCommand;
2625
import org.eclipse.jgit.api.errors.GitAPIException;
2726
import org.eclipse.jgit.lib.ObjectId;
2827
import org.eclipse.jgit.lib.PersonIdent;
@@ -40,7 +39,6 @@
4039
import java.net.URISyntaxException;
4140
import java.nio.file.Path;
4241
import java.util.HashSet;
43-
import java.util.List;
4442
import java.util.Set;
4543

4644
import static org.apache.jena.ext.com.google.common.io.Files.createTempDir;
@@ -110,18 +108,6 @@ public Git getRepository(GitDetails gitDetails, boolean reuseDir)
110108

111109
// Checkout the specific branch or commit ID
112110
if (repo != null) {
113-
System.out.println("Listing local branches:");
114-
List<Ref> call = repo.branchList().call();
115-
for (Ref ref : call) {
116-
System.out.println("Branch: " + ref + " " + ref.getName() + " " + ref.getObjectId().getName());
117-
}
118-
119-
System.out.println("Now including remote branches:");
120-
call = repo.branchList().setListMode(ListBranchCommand.ListMode.ALL).call();
121-
for (Ref ref : call) {
122-
System.out.println("Branch: " + ref + " " + ref.getName() + " " + ref.getObjectId().getName());
123-
}
124-
125111
// Create a new local branch if it does not exist and not a commit ID
126112
boolean createBranch = !ObjectId.isId(gitDetails.getBranch());
127113
if (createBranch) {

0 commit comments

Comments
 (0)