fix: revert to the correct refspec in fetch function
This commit is contained in:
+2
-2
@@ -143,7 +143,7 @@ async function fetch(repositoryUrl, branch, execaOpts) {
|
|||||||
'fetch',
|
'fetch',
|
||||||
'--unshallow',
|
'--unshallow',
|
||||||
'--tags',
|
'--tags',
|
||||||
...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/remotes/upstream/${branch}`]),
|
...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/heads/${branch}`]),
|
||||||
],
|
],
|
||||||
execaOpts
|
execaOpts
|
||||||
);
|
);
|
||||||
@@ -153,7 +153,7 @@ async function fetch(repositoryUrl, branch, execaOpts) {
|
|||||||
[
|
[
|
||||||
'fetch',
|
'fetch',
|
||||||
'--tags',
|
'--tags',
|
||||||
...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/remotes/upstream/${branch}`]),
|
...(isLocalExists ? [repositoryUrl] : [repositoryUrl, `+refs/heads/${branch}:refs/heads/${branch}`]),
|
||||||
],
|
],
|
||||||
execaOpts
|
execaOpts
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user