fix: unshallow repository with credentials

This commit is contained in:
Anshuk Kumar
2018-05-01 09:47:15 -04:00
committed by Pierre Vanduynslager
parent c02b5cac6b
commit 45d7e6f25f
3 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -44,9 +44,11 @@ async function isRefInHistory(ref) {
/**
* Unshallow the git repository (retriving every commits and tags).
*
* @param {String} repositoryUrl The remote repository URL with credentials.
*/
async function unshallow() {
await execa('git', ['fetch', '--unshallow', '--tags'], {reject: false});
async function unshallow(repositoryUrl) {
await execa('git', ['fetch', '--unshallow', '--tags', repositoryUrl], {reject: false});
}
/**