Skip to content

Commit a5bc715

Browse files
committed
fix: pass remoteName to pushCurrentBranch in publishRepository
Previously, publishRepository called git.pushCurrentBranch(input.cwd, null), discarding the remoteName returned by git.ensureRemote. This could cause the push to target the wrong remote if a non-origin remote already existed. Now passes remoteName so the push always targets the just-configured remote.
1 parent 92e2845 commit a5bc715

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/server/src/sourceControl/SourceControlRepositoryService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ export const make = Effect.fn("makeSourceControlRepositoryService")(function* ()
292292
};
293293
}
294294

295-
const pushResult = yield* git.pushCurrentBranch(input.cwd, null);
295+
const pushResult = yield* git.pushCurrentBranch(input.cwd, remoteName);
296296

297297
return {
298298
repository: toRepositoryInfo(providerKind, urls),

0 commit comments

Comments
 (0)