Skip to content

Commit ba5b944

Browse files
committed
fix: fix list remote command
1 parent 9eda3b3 commit ba5b944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export async function pushBranch(opts: {
110110

111111
const remoteBranchExists = await git
112112
.listRemote(['--heads', remote, branch])
113-
.then(() => true)
113+
.then((result) => result.trim().length > 0)
114114
.catch(() => false)
115115

116116
if (remoteBranchExists) {

0 commit comments

Comments
 (0)