From 75b837b95bfbde5faa329ea20e3c0e920abe9da6 Mon Sep 17 00:00:00 2001 From: Lars Berning <151194+laberning@users.noreply.github.com> Date: Sat, 19 Feb 2022 21:43:22 +0100 Subject: [PATCH] adds a missing reset statement --- bin/updateopenrowingmonitor.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/updateopenrowingmonitor.sh b/bin/updateopenrowingmonitor.sh index d74b650..83b8054 100755 --- a/bin/updateopenrowingmonitor.sh +++ b/bin/updateopenrowingmonitor.sh @@ -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