Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

don't propagate DRIP_INIT or DRIP_INIT_CLASS to subprocess

  • Loading branch information...
commit 77327993ee9ed01ac1fa21aefd69f403fa1fc178 1 parent f637790
@ninjudd ninjudd authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 leiningen-core/src/leiningen/core/eval.clj
View
6 leiningen-core/src/leiningen/core/eval.clj
@@ -142,13 +142,17 @@
"Rebind this to false to disable forwarding *in* to subprocesses."
true)
+(def drip-env
+ {"DRIP_INIT" nil
+ "DRIP_INIT_CLASS" nil})
+
(defn- overridden-env
"Returns an overridden version of the current environment as an Array of
Strings of the form name=val, suitable for passing to Runtime#exec."
[env]
(->> (if (:replace (meta env))
env
- (merge {} (System/getenv) env))
+ (merge {} (System/getenv) drip-env env))
(filter val)
(map #(str (name (key %)) "=" (val %)))
(into-array String)))
Please sign in to comment.
Something went wrong with that request. Please try again.