Skip to content

Commit

Permalink
Recover from a clone of a damaged directory
Browse files Browse the repository at this point in the history
  • Loading branch information
madhephaestus committed Mar 15, 2022
1 parent 001e91f commit 0e30afe
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1611,10 +1611,13 @@ public static File cloneRepo(String remoteURI, String branch) {
checkout(remoteURI, myBranch);
}

} catch (Throwable e) {
} catch (org.eclipse.jgit.api.errors.JGitInternalException exe) {
closeGit(git);
deleteRepo(remoteURI);
return cloneRepo(remoteURI,branch);
}catch (Throwable e) {

if (git != null)
closeGit(git);
closeGit(git);
PasswordManager.checkInternet();
throw new RuntimeException(e);
}
Expand Down

0 comments on commit 0e30afe

Please sign in to comment.