Skip to content

Commit 8b440a3

Browse files
committed
fix: delete existing branch before initializing
1 parent 6107af5 commit 8b440a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.taskfiles/task_dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ tasks:
2222
desc: Init git branch {{.BRANCH_DEP_PREFIX}}/*
2323
cmds:
2424
- git pull {{.GIT_REMOTE}} {{.BRANCH_BASE}}:{{.BRANCH_BASE}}
25-
- git switch {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} {{.BRANCH_BASE}} 2>/dev/null || git switch -c {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} {{.BRANCH_BASE}}
25+
- git branch -D {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} 2>/dev/null || git switch -c {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} {{.BRANCH_BASE}}
2626
silent: true
2727

2828
update:

0 commit comments

Comments
 (0)