StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
StackGenVis/frontend/node_modules/pacote/lib/util/git/env.js

33 lines
795 B

const uniqueFilename = require('unique-filename')
const { join } = require('path')
const osenv = require('osenv')
const goodEnvVars = new Set([
'GIT_ASKPASS',
'GIT_EXEC_PATH',
'GIT_PROXY_COMMAND',
'GIT_SSH',
'GIT_SSH_COMMAND',
'GIT_SSL_CAINFO',
'GIT_SSL_NO_VERIFY'
])
// memoize
let gitEnv
module.exports = () => {
if (gitEnv)
return gitEnv
// we set the template dir to an empty folder to give git less to do
const tmpDir = join(osenv.tmpdir(), 'pacote-git-template-tmp')
const tmpName = uniqueFilename(tmpDir, 'git-clone')
return gitEnv = Object.keys(process.env).reduce((gitEnv, k) => {
if (goodEnvVars.has(k) || !k.startsWith('GIT_'))
gitEnv[k] = process.env[k]
return gitEnv
}, {
GIT_ASKPASS: 'echo',
GIT_TEMPLATE_DIR: tmpName
})
}