Skip to content

Commit bf90415

Browse files
committed
fix: logic
1 parent fcf8b2d commit bf90415

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/autodev.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,8 @@ const autoDev = async (): Promise<void> => {
127127
info(`Branch ${branch} does not exist. Creating branch from ${base}.`)
128128
await exec(`git checkout -b ${branch} ${base}`)
129129
await exec(`git push -u origin ${branch}`)
130-
} else {
131-
await exec(`git checkout ${branch}`)
132130
}
131+
await exec(`git checkout -B ${branch}`)
133132

134133
// only push to defined branch if there are changes
135134
await exec('git fetch')

0 commit comments

Comments
 (0)