Skip to content

Commit 9589af7

Browse files
Removes prerelease flag from push/pull fix
1 parent b2818c3 commit 9589af7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/env/node/git/localGitProvider.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1464,10 +1464,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
14641464
} else {
14651465
[branchName, remoteName] = getBranchNameAndRemote(options.reference);
14661466
}
1467-
upstreamName =
1468-
this.container.prereleaseOrDebugging || options.publish != null
1469-
? getBranchTrackingWithoutRemote(options.reference)
1470-
: undefined;
1467+
upstreamName = getBranchTrackingWithoutRemote(options.reference);
14711468
} else {
14721469
const branch = await this.getBranch(repoPath);
14731470
if (branch == null) return;
@@ -1560,7 +1557,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
15601557
await this.git.pull(repoPath, {
15611558
branch: branchName,
15621559
remote: remoteName,
1563-
upstream: this.container.prereleaseOrDebugging ? getBranchTrackingWithoutRemote(branch) : undefined,
1560+
upstream: getBranchTrackingWithoutRemote(branch),
15641561
rebase: options?.rebase,
15651562
tags: options?.tags,
15661563
});

0 commit comments

Comments
 (0)