Created
March 15, 2012 19:33
-
-
Save ndimiduk/2046310 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git --no-pager diff 1.5.2 1.7.0 src/leiningen/util/file.clj | |
diff --git a/src/leiningen/util/file.clj b/src/leiningen/util/file.clj | |
index 638cfe7..0a1f90d 100644 | |
--- a/src/leiningen/util/file.clj | |
+++ b/src/leiningen/util/file.clj | |
@@ -11,6 +11,7 @@ | |
"Delete file f. If it's a directory, recursively delete all its contents. | |
Raise an exception if any deletion fails unless silently is true." | |
[f & [silently]] | |
+ (System/gc) ; This sometimes helps release files for deletion on windows. | |
(let [f (file f)] | |
(if (.isDirectory f) | |
(doseq [child (.listFiles f)] | |
git finished. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment