adds a missing reset statement

This commit is contained in:
Lars Berning 2022-02-19 21:43:22 +01:00
parent 05ea1fe65f
commit 75b837b95b
No known key found for this signature in database
GPG Key ID: 028E73C9E1D8A0B3
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ if getopts "b:" arg; then
if ask "Do you want to switch from branch \"$CURRENT_BRANCH\" to branch \"$OPTARG\"?" Y; then
print "Switching to branch \"$OPTARG\"..."
sudo git reset --hard origin/$CURRENT_BRANCH
CURRENT_BRANCH=$OPTARG
switch_branch
else