diff --git a/scripts/deploy/git.js b/scripts/deploy/git.js
index 41e87bc6339d074939a6bda4fc829dbde955bcca..4fc20d10a31307ca53abf50ac0b963c6afb15e74 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); });