From: Joseph Nuthalapati Date: Wed, 17 Aug 2022 11:56:51 +0000 (+0530) Subject: git: Fix switching back to current branch in `gup` X-Git-Url: https://njoseph.me/gitweb/babashka-scripts.git/commitdiff_plain/0df5525be671d19747f8cccb8291f84d8b2ee932 git: Fix switching back to current branch in `gup` --- diff --git a/scripts/git.clj b/scripts/git.clj index b84cffb..aeacbbe 100755 --- a/scripts/git.clj +++ b/scripts/git.clj @@ -52,5 +52,5 @@ (map run-cmd '[["git" "checkout" "master"] ["git" "pull" "--rebase"] - ["git" "checkout" "-"] + ["git" "checkout" current-branch] ["git" "rebase" "master"]])))))