$64 GRAYBYTE WORDPRESS FILE MANAGER $73

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/git/lib/

HOME
Current File : /opt/alt/alt-nodejs16/root/usr/lib/node_modules/npm/node_modules.bundled/@npmcli/git/lib//spawn.js
const spawn = require('@npmcli/promise-spawn')
const promiseRetry = require('promise-retry')
const log = require('proc-log')
const makeError = require('./make-error.js')
const whichGit = require('./which.js')
const makeOpts = require('./opts.js')

module.exports = (gitArgs, opts = {}) => {
  const gitPath = whichGit(opts)

  if (gitPath instanceof Error) {
    return Promise.reject(gitPath)
  }

  // undocumented option, mostly only here for tests
  const args = opts.allowReplace || gitArgs[0] === '--no-replace-objects'
    ? gitArgs
    : ['--no-replace-objects', ...gitArgs]

  let retryOpts = opts.retry
  if (retryOpts === null || retryOpts === undefined) {
    retryOpts = {
      retries: opts.fetchRetries || 2,
      factor: opts.fetchRetryFactor || 10,
      maxTimeout: opts.fetchRetryMaxtimeout || 60000,
      minTimeout: opts.fetchRetryMintimeout || 1000,
    }
  }
  return promiseRetry((retryFn, number) => {
    if (number !== 1) {
      log.silly('git', `Retrying git command: ${
        args.join(' ')} attempt # ${number}`)
    }

    return spawn(gitPath, args, makeOpts(opts))
      .catch(er => {
        const gitError = makeError(er)
        if (!gitError.shouldRetry(number)) {
          throw gitError
        }
        retryFn(gitError)
      })
  }, retryOpts)
}


Current_dir [ NOT WRITEABLE ] Document_root [ NOT WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 12.00 AM
root / root
0
clone.js
4.779 KB
9 Mar 2026 6.51 AM
root / root
0644
errors.js
0.586 KB
9 Mar 2026 6.51 AM
root / root
0644
find.js
0.293 KB
9 Mar 2026 6.51 AM
root / root
0644
index.js
0.236 KB
9 Mar 2026 6.51 AM
root / root
0644
is-clean.js
0.217 KB
9 Mar 2026 6.51 AM
root / root
0644
is.js
0.265 KB
9 Mar 2026 6.51 AM
root / root
0644
lines-to-revs.js
3.966 KB
9 Mar 2026 6.51 AM
root / root
0644
make-error.js
0.841 KB
9 Mar 2026 6.51 AM
root / root
0644
opts.js
0.362 KB
9 Mar 2026 6.51 AM
root / root
0644
revs.js
0.623 KB
9 Mar 2026 6.51 AM
root / root
0644
spawn.js
1.267 KB
9 Mar 2026 6.51 AM
root / root
0644
utils.js
0.106 KB
9 Mar 2026 6.51 AM
root / root
0644
which.js
0.331 KB
9 Mar 2026 6.51 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF