Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Harrington committed Sep 10, 2024
1 parent de1877b commit 387cb9b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1749,7 +1749,12 @@ public static File cloneRepo(String remoteURI, String branch) {
try {
checkout(remoteURI, branch);
} catch (Exception e) {
throw new RuntimeException(e);
try {
// try the checkout with no branch specified
return cloneRepo(remoteURI,null);
} catch (Exception ex) {
throw new RuntimeException(e);
}
}
}

Expand Down

0 comments on commit 387cb9b

Please sign in to comment.