Skip to content

Commit 5b70f0b

Browse files
authored
Merge pull request #50 from ansidev/patchfix/taskfile-dep
Fix: `task:dep` commands
2 parents 6107af5 + dd98d35 commit 5b70f0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.taskfiles/task_dep.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ includes:
1010
site:
1111
taskfile: ./task_site.yaml
1212
internal: true
13+
dir: ../
1314
git:
1415
taskfile: ./task_git.yaml
1516
internal: true
@@ -22,7 +23,7 @@ tasks:
2223
desc: Init git branch {{.BRANCH_DEP_PREFIX}}/*
2324
cmds:
2425
- 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}}
26+
- git branch -D {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} 2>/dev/null || git switch -c {{.BRANCH_DEP_PREFIX}}/{{.BRANCH_NAME}} {{.BRANCH_BASE}}
2627
silent: true
2728

2829
update:

0 commit comments

Comments
 (0)