Skip to content
Browse files

Load hooks inside reset-profiles. Fixes #740.

  • Loading branch information...
1 parent 4a6953c commit 00ee950ef9fc8067885a1a7befc65d93c67e177f @technomancy committed Aug 22, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 leiningen-core/src/leiningen/core/project.clj
View
7 leiningen-core/src/leiningen/core/project.clj
@@ -299,7 +299,8 @@
[project]
(let [certs (mapcat ssl/read-certs (:certificates project))
context (ssl/make-sslcontext (into (ssl/default-trusted-certs) certs))]
- (ssl/register-scheme (ssl/https-scheme context))))
+ (ssl/register-scheme (ssl/https-scheme context))
+ project))
(defn- reset-profiles
"Compute a fresh version of the project map with middleware applied, including
@@ -314,7 +315,9 @@
(vary-meta merge {:without-profiles without-profiles
:included-profiles include-profiles
:excluded-profiles exclude-profiles})
- (apply-middleware))))
+ (apply-middleware)
+ (load-certificates)
+ (load-hooks))))
(defn merge-profiles
"Compute a fresh version of the project map with the given profiles merged

0 comments on commit 00ee950

Please sign in to comment.
Something went wrong with that request. Please try again.