git: Fix switching back to current branch in `gup` master
authorJoseph Nuthalapati <njoseph@riseup.net>
Wed, 17 Aug 2022 11:56:51 +0000 (17:26 +0530)
committerJoseph Nuthalapati <njoseph@riseup.net>
Wed, 17 Aug 2022 11:56:51 +0000 (17:26 +0530)
scripts/git.clj

index b84cffbb395faf22700316da481e3145d4df1bb6..aeacbbece116871e768b74851d236c30cb3ded2f 100755 (executable)
@@ -52,5 +52,5 @@
             (map run-cmd
                  '[["git" "checkout" "master"]
                    ["git" "pull" "--rebase"]
-                   ["git" "checkout" "-"]
+                   ["git" "checkout" current-branch]
                    ["git" "rebase" "master"]])))))