Skip to content

Commit

Permalink
update: finish command now fetch-pull even if base task doesnt exist (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ji Sang Seo authored Feb 12, 2024
1 parent 18f2de5 commit 310b9be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,4 +176,7 @@ It will force developers to manage there works( not Task ) with PR.


- 💻 __<U>Invoke Sync before pr</U>__
> Sync should be invoked to prevent duplicate pushes<!-->End of Placeholder of OH-MY-TASK<-->
> Sync should be invoked to prevent duplicate pushes
- 💻 __<U>fetch and pull after checkout on finish command</U>__
<!-->End of Placeholder of OH-MY-TASK<-->
2 changes: 2 additions & 0 deletions src/task/finish.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export async function finish() {
"Select Branch to checkout:",
false
);
await git.fetch();
await git.pull();
await git.checkout(branchToCheckout);
return;
}
Expand Down

0 comments on commit 310b9be

Please sign in to comment.