Skip to content

Commit 96003c8

Browse files
authored
fix: pull before pushing to gitea in commitAndPush func (#2063)
1 parent ffdfa3e commit 96003c8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cmd/commit.ts

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const commitAndPush = async (values: Record<string, any>, branch: string): Promi
5555
async () => {
5656
try {
5757
cd(env.ENV_DIR)
58+
await $`git pull --rebase origin ${branch}`
5859
await $`git push -u origin ${branch}`
5960
} catch (e) {
6061
d.warn(`The values repository is not yet reachable.`)

0 commit comments

Comments
 (0)