From 41b5d54c6334d5f20b718bca57c4a85d939d30b8 Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Fri, 3 Feb 2012 16:24:30 -0700 Subject: [PATCH] (aws deploy) git is freaky with its path determination --- scripts/deploy/git.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/deploy/git.js b/scripts/deploy/git.js index 41e87bc63..4fc20d10a 100644 --- a/scripts/deploy/git.js +++ b/scripts/deploy/git.js @@ -93,8 +93,10 @@ exports.pull = function(dir, remote, branch, pr, cb) { var p = spawn('git', [ 'pull', "-f", remote, branch + ":" + branch ], { env: { GIT_DIR: path.join(dir, ".git"), - GIT_WORK_TREE: dir - } + GIT_WORK_TREE: dir, + PWD: dir + }, + cwd: dir }); p.stdout.on('data', function(c) { splitAndEmit(c, pr); }); -- GitLab