File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/main/java/org/commonwl/view/git Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 22
22
import org .apache .commons .codec .digest .DigestUtils ;
23
23
import org .commonwl .view .researchobject .HashableAgent ;
24
24
import org .eclipse .jgit .api .Git ;
25
- import org .eclipse .jgit .api .ListBranchCommand ;
26
25
import org .eclipse .jgit .api .errors .GitAPIException ;
27
26
import org .eclipse .jgit .lib .ObjectId ;
28
27
import org .eclipse .jgit .lib .PersonIdent ;
40
39
import java .net .URISyntaxException ;
41
40
import java .nio .file .Path ;
42
41
import java .util .HashSet ;
43
- import java .util .List ;
44
42
import java .util .Set ;
45
43
46
44
import static org .apache .jena .ext .com .google .common .io .Files .createTempDir ;
@@ -110,18 +108,6 @@ public Git getRepository(GitDetails gitDetails, boolean reuseDir)
110
108
111
109
// Checkout the specific branch or commit ID
112
110
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
-
125
111
// Create a new local branch if it does not exist and not a commit ID
126
112
boolean createBranch = !ObjectId .isId (gitDetails .getBranch ());
127
113
if (createBranch ) {
You can’t perform that action at this time.
0 commit comments