From e0a78917380ba12d34a8173c9725471489e52d84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Fri, 5 May 2017 10:41:00 -0700 Subject: pacote@2.7.6 --- node_modules/pacote/CHANGELOG.md | 10 ++++++++++ node_modules/pacote/lib/util/git.js | 34 +++++++++------------------------- node_modules/pacote/package.json | 10 +++++----- 3 files changed, 24 insertions(+), 30 deletions(-) (limited to 'node_modules') diff --git a/node_modules/pacote/CHANGELOG.md b/node_modules/pacote/CHANGELOG.md index c629737a9..2f1cd6d03 100644 --- a/node_modules/pacote/CHANGELOG.md +++ b/node_modules/pacote/CHANGELOG.md @@ -2,6 +2,16 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. + +## [2.7.6](https://github.com/zkat/pacote/compare/v2.7.5...v2.7.6) (2017-05-05) + + +### Bug Fixes + +* **git:** only use longpaths on win32 because old gits ([32846fc](https://github.com/zkat/pacote/commit/32846fc)) + + + ## [2.7.5](https://github.com/zkat/pacote/compare/v2.7.4...v2.7.5) (2017-05-04) diff --git a/node_modules/pacote/lib/util/git.js b/node_modules/pacote/lib/util/git.js index 76c8101bd..dc189b541 100644 --- a/node_modules/pacote/lib/util/git.js +++ b/node_modules/pacote/lib/util/git.js @@ -50,14 +50,10 @@ try { module.exports.clone = fullClone function fullClone (repo, committish, target, opts) { opts = optCheck(opts) - const gitArgs = [ - 'clone', - '-q', - // Mainly for windows, but no harm done - '-c', 'core.longpaths=true', - repo, - target - ] + const gitArgs = ['clone', '-q', repo, target] + if (process.platform === 'win32') { + gitArgs.push('--config', 'core.longpaths=true') + } return execGit(gitArgs, { cwd: path.dirname(target) }, opts).then(() => { @@ -72,16 +68,10 @@ function fullClone (repo, committish, target, opts) { module.exports.shallow = shallowClone function shallowClone (repo, branch, target, opts) { opts = optCheck(opts) - const gitArgs = [ - 'clone', - '--depth=1', - '-q', - '-b', branch, - // Mainly for windows, but no harm done - '-c', 'core.longpaths=true', - repo, - target - ] + const gitArgs = ['clone', '--depth=1', '-q', '-b', branch, repo, target] + if (process.platform === 'win32') { + gitArgs.push('--config', 'core.longpaths=true') + } return execGit(gitArgs, { cwd: target }, opts).then(() => { @@ -90,13 +80,7 @@ function shallowClone (repo, branch, target, opts) { } function updateSubmodules (localRepo, opts) { - const gitArgs = [ - 'submodule', - 'update', - '-q', - '--init', - '--recursive' - ] + const gitArgs = ['submodule', 'update', '-q', '--init', '--recursive'] return execGit(gitArgs, { cwd: localRepo }, opts) diff --git a/node_modules/pacote/package.json b/node_modules/pacote/package.json index 660d14471..c03c53454 100644 --- a/node_modules/pacote/package.json +++ b/node_modules/pacote/package.json @@ -1,7 +1,7 @@ { "_from": "pacote@latest", - "_id": "pacote@2.7.5", - "_integrity": "sha512-+wMPN8DqoTVlDtkwoyTx22o4I9+K/coP7BaGJrj49MwvbqsLXNw2wfmBPhI7E63qoIU1GPvZUVcsSgBuqFvY3A==", + "_id": "pacote@2.7.6", + "_integrity": "sha512-X/y4LIEaBblP/M0mjUHCAupYTwFlqJvxRwSMnZML2rmCv/aTdwkZFxdhPMZtWy5qZmurnYoROZs/Mp9rpISA2A==", "_location": "/pacote", "_phantomChildren": { "cacache": "9.0.0", @@ -30,8 +30,8 @@ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/pacote/-/pacote-2.7.5.tgz", - "_shasum": "6c6be08ea3cfb70d2a0e22485840dd9e20423234", + "_resolved": "https://registry.npmjs.org/pacote/-/pacote-2.7.6.tgz", + "_shasum": "698ea7664b58c702479939f62ad9200edf1929fa", "_shrinkwrap": null, "_spec": "pacote@latest", "_where": "/Users/zkat/Documents/code/npm", @@ -122,5 +122,5 @@ "update-coc": "weallbehave -o . && git add CODE_OF_CONDUCT.md && git commit -m 'docs(coc): updated CODE_OF_CONDUCT.md'", "update-contrib": "weallcontribute -o . && git add CONTRIBUTING.md && git commit -m 'docs(contributing): updated CONTRIBUTING.md'" }, - "version": "2.7.5" + "version": "2.7.6" } -- cgit v1.2.3