Commit a67761b38f2363d091b027e570e4e8d0477ec4d8
- Date: Mon Jan 07 13:14:57 +0000 2008
- Committer: Johan Sørensen (johan@johansorensen.com)
- Author: Johan Sørensen (johan@johansorensen.com)
- Commit SHA1: a67761b38f2363d091b027e570e4e8d0477ec4d8
- Tree SHA1: 6a3d26ef27efd1d7b015a2386d43aa62f9d36d8f
added PATH to task_performer environment as well
Commit diff
| |   |
| 11 | 11 | |
| 12 | 12 | GitoriousConfig = YAML.load_file(conf_file) |
| 13 | 13 | |
| 14 | | ENV["PATH"] = "/opt/local/bin:#{ENV["PATH"]}" |
| 14 | ENV["PATH"] = "/usr/local/bin/:/opt/local/bin:#{ENV["PATH"]}" |
| 15 | 15 | |
| 16 | 16 | require "strainer" |
| 17 | 17 | require "client" |
| toggle raw diff |
--- a/script/gitorious
+++ b/script/gitorious
@@ -11,7 +11,7 @@ end
GitoriousConfig = YAML.load_file(conf_file)
-ENV["PATH"] = "/opt/local/bin:#{ENV["PATH"]}"
+ENV["PATH"] = "/usr/local/bin/:/opt/local/bin:#{ENV["PATH"]}"
require "strainer"
require "client" |
| |   |
| 6 | 6 | |
| 7 | 7 | LOCK_FILE_PATH = File.join(RAILS_ROOT, "tmp", "task_lockfile") |
| 8 | 8 | |
| 9 | ENV["PATH"] = "/usr/local/bin/:/opt/local/bin:#{ENV["PATH"]}" |
| 10 | |
| 9 | 11 | class TaskLockError < StandardError; end |
| 10 | 12 | |
| 11 | 13 | def with_lock(&block) |
| toggle raw diff |
--- a/script/task_performer
+++ b/script/task_performer
@@ -6,6 +6,8 @@ require "fileutils"
LOCK_FILE_PATH = File.join(RAILS_ROOT, "tmp", "task_lockfile")
+ENV["PATH"] = "/usr/local/bin/:/opt/local/bin:#{ENV["PATH"]}"
+
class TaskLockError < StandardError; end
def with_lock(&block) |