Skip to content
Browse files

don't propagate DRIP_INIT or DRIP_INIT_CLASS to subprocess

  • Loading branch information...
1 parent f637790 commit 77327993ee9ed01ac1fa21aefd69f403fa1fc178 @ninjudd ninjudd committed
Showing with 5 additions and 1 deletion.
  1. +5 −1 leiningen-core/src/leiningen/core/eval.clj
6 leiningen-core/src/leiningen/core/eval.clj
@@ -142,13 +142,17 @@
"Rebind this to false to disable forwarding *in* to subprocesses."
+(def drip-env
+ {"DRIP_INIT" 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."
(->> (if (:replace (meta env))
- (merge {} (System/getenv) env))
+ (merge {} (System/getenv) drip-env env))
(filter val)
(map #(str (name (key %)) "=" (val %)))
(into-array String)))

0 comments on commit 7732799

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