fix: fetch all tags even if the repo is not shallow

This commit is contained in:
Pierre Vanduynslager
2018-07-02 18:38:24 -04:00
parent 2d3a5e53e9
commit 45eee4acdd
4 changed files with 29 additions and 12 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ export async function gitDetachedHead(repositoryUrl, head) {
process.chdir(dir);
await execa('git', ['init']);
await execa('git', ['remote', 'add', 'origin', repositoryUrl]);
await execa('git', ['fetch']);
await execa('git', ['fetch', repositoryUrl]);
await execa('git', ['checkout', head]);
return dir;
}