Skip to content
Browse files

Empty the ENV before building. Closes #31

  • Loading branch information...
1 parent efc17bf commit 194ff6deb5176770ce5cad126af6f32132334796 @defunkt committed Feb 8, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/cijoe.rb
View
5 lib/cijoe.rb
@@ -187,10 +187,9 @@ def run_hook(hook)
{}
end
+ ENV.clear
data.each{ |k, v| ENV[k] = v }
- ret = `cd #{@project_path} && sh #{file}`
- data.each{ |k, v| ENV[k] = nil }
- ret
+ `cd #{@project_path} && sh #{file}`
end
end

0 comments on commit 194ff6d

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