diff options
author | Andreas <functino@users.noreply.github.com> | 2015-02-27 18:46:15 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-03-02 21:02:38 +0300 |
commit | c8258f31365b045e5fcf15b865a363abbc3be616 (patch) | |
tree | 2747c661cdc12b77c3d313c4f99577c801902429 /lib | |
parent | bcd47224e18884191a5d0057c2b2fff83ac8206e (diff) |
Adds function call to gitEnv in checkGitDir
In checkGitDir when executing `git config --get remote.origin.url` the gitEnv function is passed to git.whichAndExec instead of the result of that function.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cache/add-remote-git.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/cache/add-remote-git.js b/lib/cache/add-remote-git.js index 974c158f9..85a4c722d 100644 --- a/lib/cache/add-remote-git.js +++ b/lib/cache/add-remote-git.js @@ -94,7 +94,7 @@ function checkGitDir (p, u, co, origUrl, silent, cb) { git.whichAndExec( [ "config", "--get", "remote.origin.url" ], - { cwd : p, env : gitEnv }, + { cwd : p, env : gitEnv() }, function (er, stdout, stderr) { var stdoutTrimmed = (stdout + "\n" + stderr).trim() if (er || u !== stdout.trim()) { |