fix: add debug log for git fetch command

This commit is contained in:
Pierre Vanduynslager 2018-07-02 16:28:54 -04:00
parent 3602716c0b
commit 4abda31f83

View File

@ -54,7 +54,11 @@ async function isRefInHistory(ref) {
* @param {String} repositoryUrl The remote repository URL. * @param {String} repositoryUrl The remote repository URL.
*/ */
async function unshallow(repositoryUrl) { async function unshallow(repositoryUrl) {
await execa('git', ['fetch', '--unshallow', '--tags', repositoryUrl], {reject: false}); try {
await execa('git', ['fetch', '--unshallow', '--tags', repositoryUrl]);
} catch (err) {
debug(err);
}
} }
/** /**