Skip to content

Commit e9592c6

Browse files
committed
Commit ID checkout bug fix
1 parent 23f601c commit e9592c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public Git getRepository(GitDetails gitDetails)
8888
repo.checkout()
8989
.setName(gitDetails.getBranch())
9090
.call();
91-
if (repo.getRepository().getFullBranch() != null) {
91+
String branch = repo.getRepository().getFullBranch();
92+
if (branch != null && !branch.startsWith(gitDetails.getBranch())) {
9293
repo.pull().call();
9394
}
9495
}

0 commit comments

Comments
 (0)