Skip to content

Commit ada4941

Browse files
committed
Fix for invalid branch names being accepted in some circumstances
1 parent 15122b2 commit ada4941

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public Git getRepository(GitDetails gitDetails, boolean reuseDir)
118118
}
119119
} catch (RefNotFoundException ex) {
120120
// Attempt slashes in branch fix
121+
repo = null;
121122
GitDetails correctedForSlash = transferPathToBranch(gitDetails);
122123
if (correctedForSlash != null) {
123124
gitDetails = correctedForSlash;

0 commit comments

Comments
 (0)