From 9948a74347704b9a0bdd601ffc0ab08aaa4ae97a Mon Sep 17 00:00:00 2001 From: Pierre Vanduynslager Date: Thu, 6 Jun 2019 11:43:42 -0400 Subject: [PATCH] fix: revert to the correct refspec in fetch function --- lib/git.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/git.js b/lib/git.js index 905f953f..4f53ed78 100644 --- a/lib/git.js +++ b/lib/git.js @@ -143,7 +143,7 @@ async function fetch(repositoryUrl, branch, execaOpts) { 'fetch', '--unshallow', '--tags', - ...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/remotes/upstream/${branch}`]), + ...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/heads/${branch}`]), ], execaOpts ); @@ -153,7 +153,7 @@ async function fetch(repositoryUrl, branch, execaOpts) { [ 'fetch', '--tags', - ...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/remotes/upstream/${branch}`]), + ...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/heads/${branch}`]), ], execaOpts );