$60 GRAYBYTE WORDPRESS FILE MANAGER $92

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/@npmcli/git/lib/

HOME
Current File : /opt/cpanel/ea-nodejs22/lib/node_modules/npm/node_modules/@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 makeOpts = require('./opts.js')

module.exports = (gitArgs, opts = {}) => {
  const whichGit = require('./which.js')
  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 [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
1 Jan 1970 8.00 AM
root / root
0
clone.js
4.821 KB
17 Jan 2026 1.16 AM
root / root
0644
errors.js
0.565 KB
17 Jan 2026 1.16 AM
root / root
0644
find.js
0.309 KB
17 Jan 2026 1.16 AM
root / root
0644
index.js
0.236 KB
17 Jan 2026 1.16 AM
root / root
0644
is-clean.js
0.217 KB
17 Jan 2026 1.16 AM
root / root
0644
is.js
0.211 KB
17 Jan 2026 1.16 AM
root / root
0644
lines-to-revs.js
3.966 KB
17 Jan 2026 1.16 AM
root / root
0644
make-error.js
0.841 KB
17 Jan 2026 1.16 AM
root / root
0644
opts.js
1.579 KB
17 Jan 2026 1.16 AM
root / root
0644
revs.js
0.509 KB
17 Jan 2026 1.16 AM
root / root
0644
spawn.js
1.272 KB
17 Jan 2026 1.16 AM
root / root
0644
utils.js
0.106 KB
17 Jan 2026 1.16 AM
root / root
0644
which.js
0.331 KB
17 Jan 2026 1.16 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF