fix: fetch tags on repo cached by the CI

This commit is contained in:
Pierre Vanduynslager
2020-01-15 13:43:44 -05:00
parent 28b54800cd
commit 6b5b02ea75
3 changed files with 52 additions and 6 deletions
+10
View File
@@ -109,6 +109,16 @@ export async function gitCheckout(branch, create, execaOpts) {
await execa('git', create ? ['checkout', '-b', branch] : ['checkout', branch], execaOpts);
}
/**
* Fetch current git repository.
*
* @param {String} repositoryUrl The repository remote URL.
* @param {Object} [execaOpts] Options to pass to `execa`.
*/
export async function gitFetch(repositoryUrl, execaOpts) {
await execa('git', ['fetch', repositoryUrl], execaOpts);
}
/**
* Get the HEAD sha.
*