Skip to content
This repository
Browse code

don't propagate DRIP_INIT or DRIP_INIT_CLASS to subprocess

  • Loading branch information...
commit 77327993ee9ed01ac1fa21aefd69f403fa1fc178 1 parent f637790
Justin Balthrop authored November 19, 2012
6  leiningen-core/src/leiningen/core/eval.clj
@@ -142,13 +142,17 @@
142 142
   "Rebind this to false to disable forwarding *in* to subprocesses."
143 143
   true)
144 144
 
  145
+(def drip-env
  146
+  {"DRIP_INIT" nil
  147
+   "DRIP_INIT_CLASS" nil})
  148
+
145 149
 (defn- overridden-env
146 150
   "Returns an overridden version of the current environment as an Array of
147 151
   Strings of the form name=val, suitable for passing to Runtime#exec."
148 152
   [env]
149 153
   (->> (if (:replace (meta env))
150 154
          env
151  
-         (merge {} (System/getenv) env))
  155
+         (merge {} (System/getenv) drip-env env))
152 156
        (filter val)
153 157
        (map #(str (name (key %)) "=" (val %)))
154 158
        (into-array String)))

0 notes on commit 7732799

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