Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Fix temp directory permissions for git fetcher #159

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/fetchers/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function resolve (url, spec, name, opts) {
function withTmp (opts, cb) {
if (opts.cache) {
// cacache has a special facility for working in a tmp dir
return cacache.tmp.withTmp(opts.cache, {tmpPrefix: 'git-clone'}, cb)
return cacache.tmp.withTmp(opts.cache, {tmpPrefix: 'git-clone', uid: opts.uid, gid: opts.gid}, cb)
} else {
const tmpDir = path.join(osenv.tmpdir(), 'pacote-git-tmp')
const tmpName = uniqueFilename(tmpDir, 'git-clone')
Expand Down