Log exception when error occurs cloning Git repo. Fixes #1160

This commit is contained in:
Ryan Baxter
2018-10-11 11:31:44 -04:00
parent 8b122cc3f5
commit 2e5933aafa

View File

@@ -574,6 +574,7 @@ public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository
return clone.call();
}
catch (GitAPIException e) {
logger.warn("Error occured cloning to base directory.", e);
deleteBaseDirIfExists();
throw e;
}