diff options
Diffstat (limited to 'node_modules/pacote/lib/util/git.js')
-rw-r--r-- | node_modules/pacote/lib/util/git.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node_modules/pacote/lib/util/git.js b/node_modules/pacote/lib/util/git.js index dc189b541..6a82776a2 100644 --- a/node_modules/pacote/lib/util/git.js +++ b/node_modules/pacote/lib/util/git.js @@ -105,7 +105,7 @@ function revs (repo, opts) { return BB.resolve(cached) } return pinflight(`ls-remote:${repo}`, () => { - return spawnGit(['ls-remote', repo, '-t', '-h', '*'], { + return spawnGit(['ls-remote', repo], { env: gitEnv() }, opts).then(child => { let stdout = '' @@ -117,6 +117,7 @@ function revs (repo, opts) { const sha = split[0].trim() const ref = split[1].trim().match(/(?:refs\/[^/]+\/)?(.*)/)[1] if (!ref) { return revs } // ??? + if (ref.match(/\^\{\}$/)) { return revs } // refs/tags/x^{} crap const type = refType(line) const doc = {sha, ref, type} |