/usr/share/cagefs-skeleton/lib/node_modules/npm/node_modules/@npmcli/git/lib
const which = require('which') let gitPath try { gitPath = which.sync('git') } catch { // ignore errors } module.exports = (opts = {}) => { if (opts.git) { return opts.git } if (!gitPath || opts.git === false) { return Object.assign(new Error('No git binary found in $PATH'), { code: 'ENOGIT' }) } return gitPath }
.
Edit
..
Edit
clone.js
Edit
errors.js
Edit
find.js
Edit
index.js
Edit
is-clean.js
Edit
is.js
Edit
lines-to-revs.js
Edit
make-error.js
Edit
opts.js
Edit
revs.js
Edit
spawn.js
Edit
utils.js
Edit
which.js
Edit