From 6f8d5fd251353c474a6551a2b353ba51a6119b59 Mon Sep 17 00:00:00 2001 From: Andrejus Kostarevas Date: Sun, 3 Mar 2024 16:51:00 +0000 Subject: [PATCH] fix: clean up in setup-git script --- script/setup-git | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/setup-git b/script/setup-git index caf251f..bac3bd3 100755 --- a/script/setup-git +++ b/script/setup-git @@ -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!"