diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Tar.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Tar.java index 5a257616ab..d7a5eec505 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Tar.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/util/Tar.java @@ -68,7 +68,7 @@ public class Tar { tmp.deleteOnExit(); try (FileOutputStream target = new FileOutputStream(tmp)) { tarTo(fileOrDir, target); - return new FileInputStream(tmp); + return new DeletingFileInputStream(tmp); } }