• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1var log = require('npmlog')
2var which = require('which')
3
4function getGitPath (cb) {
5  var tracker = log.newItem('getGitPath', 1)
6  tracker.info('getGitPath', 'Finding git in your PATH')
7  which('git', function (err, path) {
8    tracker.finish()
9    cb(err, path)
10  })
11}
12
13module.exports = getGitPath
14