diff options
author | isaacs <i@izs.me> | 2012-01-13 02:04:30 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-01-13 02:04:30 +0400 |
commit | 80da8e392ab79cfd689fffe560ff46d67b54a725 (patch) | |
tree | f8b9c398c2de1975467ea21b969d2c2b48dafefe /lib/init.js | |
parent | cd0c36405868406b4c71a436a92169db3b07ebdf (diff) |
Fix #2018 Make git binary configurable
Diffstat (limited to 'lib/init.js')
-rw-r--r-- | lib/init.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/init.js b/lib/init.js index ee7e8773a..2ddb3e86f 100644 --- a/lib/init.js +++ b/lib/init.js @@ -195,7 +195,7 @@ function defaultName (folder, data) { function defaultVersion (folder, data, cb) { if (data.version) return cb(null, data.version) - exec("git", ["describe", "--tags"], process.env, false, folder, + exec(npm.config.get("git"), ["describe", "--tags"], process.env, false, folder, function (er, code, out) { out = (out || "").trim() if (semver.valid(out)) return cb(null, out) @@ -207,7 +207,7 @@ function defaultVersion (folder, data, cb) { function defaultRepo (folder, data, cb) { if (data.repository) return cb(null, data.repository) - exec( "git", ["remote", "-v"], process.env, false, folder + exec( npm.config.get("git"), ["remote", "-v"], process.env, false, folder , function (er, code, out) { out = (out || "") .trim() |