fix: clean up in setup-git script

This commit is contained in:
Andrejus Kostarevas
2024-03-03 16:51:00 +00:00
parent 1df0db0374
commit 6f8d5fd251

View File

@@ -2,7 +2,7 @@
set -eo pipefail
# --------------------------------------------------------------------
# Script that sets up git in dotfiles directory.
# Script that sets up git remote in dotfiles directory.
#
# Optional arguments:
# GITHUB_AUTHOR: GitHub author of repository
@@ -39,6 +39,8 @@ git -C $dir reset --hard FETCH_HEAD
git -C $dir branch --set-upstream-to=origin/$branch $branch
git -C $dir pull --rebase
unset dir author repository branch
printf "\n"
echo ">>> git logs"
echo "Done!"