Improve gdone function

This commit is contained in:
Pavle Portic 2022-10-07 12:09:58 +02:00
parent 6084cbc7ec
commit 3810b93d4e
Signed by: TheEdgeOfRage
GPG Key ID: 66AD4BA646FBC0D2
1 changed files with 2 additions and 1 deletions

View File

@ -8,7 +8,8 @@ if [ "$current" == "$(git_main_branch)" ]; then
return 1
fi
git switch $(git_main_branch)
git fetch --all --prune --jobs=10
git branch -f $(git_main_branch) origin/$(git_main_branch)
git switch $(git_main_branch)
git branch -D $current
unset current