From 5616a23b4b868d19aa100a6d86d781cc9bfd94f7 Mon Sep 17 00:00:00 2001 From: isaacs Date: Fri, 4 Sep 2020 12:07:24 -0700 Subject: [PATCH] @npmcli/git@2.0.4 * Support .git files, so that git worktrees are respected --- node_modules/@npmcli/git/lib/is.js | 5 +---- node_modules/@npmcli/git/package.json | 2 +- package-lock.json | 12 ++++++------ 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/node_modules/@npmcli/git/lib/is.js b/node_modules/@npmcli/git/lib/is.js index c3a13153f7712..e2542f2157727 100644 --- a/node_modules/@npmcli/git/lib/is.js +++ b/node_modules/@npmcli/git/lib/is.js @@ -3,7 +3,4 @@ const { promisify } = require('util') const fs = require('fs') const stat = promisify(fs.stat) module.exports = ({ cwd = process.cwd() } = {}) => - stat(cwd + '/.git/index').then( - st => st.isFile(), - er => false - ) + stat(cwd + '/.git').then(() => true, () => false) diff --git a/node_modules/@npmcli/git/package.json b/node_modules/@npmcli/git/package.json index f4ec3f61a4131..bb07188560b4c 100644 --- a/node_modules/@npmcli/git/package.json +++ b/node_modules/@npmcli/git/package.json @@ -1,6 +1,6 @@ { "name": "@npmcli/git", - "version": "2.0.3", + "version": "2.0.4", "main": "lib/index.js", "files": [ "lib/*.js" diff --git a/package-lock.json b/package-lock.json index 79a0bc36d531c..9079dba799f94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -448,9 +448,9 @@ } }, "node_modules/@npmcli/git": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.3.tgz", - "integrity": "sha512-c/ODsV5ppjB12VDXKc6hzVNgg6ZJX/etILUn3WgF5NLAYBhQLJ3fBq6uB2jQD4OwqOzJdPT1/xA3Xh3aaWGk5w==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.4.tgz", + "integrity": "sha512-OJZCmJ9DNn1cz9HPXXsPmUBnqaArot3CGYo63CyajHQk+g87rPXVOJByGsskQJhPsUUEXJcsZ2Q6bWd2jSwnBA==", "inBundle": true, "dependencies": { "@npmcli/promise-spawn": "^1.1.0", @@ -9505,9 +9505,9 @@ } }, "@npmcli/git": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.3.tgz", - "integrity": "sha512-c/ODsV5ppjB12VDXKc6hzVNgg6ZJX/etILUn3WgF5NLAYBhQLJ3fBq6uB2jQD4OwqOzJdPT1/xA3Xh3aaWGk5w==", + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.4.tgz", + "integrity": "sha512-OJZCmJ9DNn1cz9HPXXsPmUBnqaArot3CGYo63CyajHQk+g87rPXVOJByGsskQJhPsUUEXJcsZ2Q6bWd2jSwnBA==", "requires": { "@npmcli/promise-spawn": "^1.1.0", "lru-cache": "^6.0.0",