The promise values for git ls-remote (in GitRemoteResolver.refs) and git show-ref (in GitFsResolver.refs) are not stored in the cache, resulting in duplicate command executions per resolution.
Reproducing:
- Clone https://github.com/ahutchings/bower-refs-cache-miss
- Run
bower install
git ls-remote will be executed twice for the backbone repo.
The promise values for
git ls-remote(in GitRemoteResolver.refs) andgit show-ref(in GitFsResolver.refs) are not stored in the cache, resulting in duplicate command executions per resolution.Reproducing:
bower installgit ls-remotewill be executed twice for the backbone repo.