File Explorer

/proc/self/root/proc/1/task/1/root/node24/lib/node_modules/npm/node_modules/@npmcli/git/lib

This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.

which.js339 B · 19 lines
const which = require('which') let gitPathtry {  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}