Skip to content

Commit

Permalink
Invalidating working directory cache when commiting new files (#1275)
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusoe authored Jan 14, 2022
1 parent 2b416c1 commit 740beff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class FileManager {
/**
* The accessor used to access the working directory.
*/
private AbstractWorkingDirectoryAccessor workingDirectoryAccessor;
private CachingWorkingDirectoryAccessor workingDirectoryAccessor;

/**
* The manager used for Git interactions.
Expand Down Expand Up @@ -178,6 +178,7 @@ public void commitWorkingDirectory() throws GitAPIException {
} finally {
workingDirectoryLock.writeLock().unlock();
}
workingDirectoryAccessor.invalidateCache();
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package rocks.inspectit.ocelot.file;

import org.apache.commons.io.FileUtils;
import org.assertj.core.util.Files;
import org.eclipse.jgit.api.errors.GitAPIException;
import org.junit.jupiter.api.Nested;
Expand Down

0 comments on commit 740beff

Please sign in to comment.