Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2017-05-05 20:41:00 +0300
committerRebecca Turner <me@re-becca.org>2017-05-26 04:41:41 +0300
commite0a78917380ba12d34a8173c9725471489e52d84 (patch)
tree764abce3bf246244068d4f6dd11a484f5f02194d /node_modules
parentb73b0bda454b0789413bda5a3856ec0de6299032 (diff)
pacote@2.7.6
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/pacote/CHANGELOG.md10
-rw-r--r--node_modules/pacote/lib/util/git.js34
-rw-r--r--node_modules/pacote/package.json10
3 files changed, 24 insertions, 30 deletions
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.
+<a name="2.7.6"></a>
+## [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))
+
+
+
<a name="2.7.5"></a>
## [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"
}