From 8d1ece9c33e27dab022bd676bf2b29d3f9765dd3 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 8 Jan 2022 21:04:52 -0800 Subject: [PATCH] Run git prune after applying patches --- paperweight-lib/src/main/kotlin/tasks/ApplyGitPatches.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/paperweight-lib/src/main/kotlin/tasks/ApplyGitPatches.kt b/paperweight-lib/src/main/kotlin/tasks/ApplyGitPatches.kt index b5264b7d0..f69d1b0a8 100644 --- a/paperweight-lib/src/main/kotlin/tasks/ApplyGitPatches.kt +++ b/paperweight-lib/src/main/kotlin/tasks/ApplyGitPatches.kt @@ -168,6 +168,7 @@ fun ControllableOutputTask.applyGitPatches( } } } finally { + git("prune").run() // cleanup old git objects tempDir.deleteRecursively() } }