Permalink
Browse files

Fix a leiningen 1.4.0 warning.

This commit also marks the end of support for leiningen 1.3.1.
  • Loading branch information...
1 parent 1d6e7e4 commit b4c794ceef72737a6363b8b1bb2bb14542189c1c @mtyaka committed Dec 6, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/leiningen/oneoff.clj
@@ -52,7 +52,9 @@ for a one-off project."
(defn oneoff-eval-in-project-hook
[eval-in-project project form & [handler skip-auto-compile init]]
- (let [skip-auto-compile (or (:oneoff project) skip-auto-compile)]
+ (if (:oneoff project)
+ (binding [leiningen.compile/*skip-auto-compile* true]
+ (eval-in-project project form))
(eval-in-project project form handler skip-auto-compile init)))
(defn oneoff-repl-server-hook [repl-server project host port]

0 comments on commit b4c794c

Please sign in to comment.