Skip to content

Commit

Permalink
Merge pull request #40 from liquibase/feature/re-release
Browse files Browse the repository at this point in the history
Update GitPathHandler.java
  • Loading branch information
mcred authored Jun 10, 2024
2 parents 0fa5b9d + 8f07e9b commit 4632767
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ public ResourceAccessor getResourceAccessor(String root) throws IOException {
if (Boolean.TRUE.equals(cleanup)) {
this.registerShutdown(path);
}

if (!path.exists()) {
path.mkdirs();
}

try (Repository repository = new RepositoryBuilder().setGitDir(gitPath).build()) {
if (repository.getObjectDatabase().exists()) {
try (Git git = Git.open(path)) {
Expand Down

0 comments on commit 4632767

Please sign in to comment.