From 92d6a708f16b264c0ccc81e7634a2966ebce8c1b Mon Sep 17 00:00:00 2001 From: eltrac Date: Mon, 6 Jul 2026 11:42:28 +0800 Subject: fix: unable to get current branch --- vimulti.clj | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vimulti.clj b/vimulti.clj index 6c59807..f7a3782 100644 --- a/vimulti.clj +++ b/vimulti.clj @@ -48,9 +48,11 @@ ;; git helpers (defn- get-current-branch [dir] - (shell {:dir dir + (-> (shell {:dir dir :out :string} - "git branch --show-current")) + "git branch --show-current") + :out + str/trim-newline)) ;; target should be a string like "app-name:branch" or "app-name@tag" ;; returns a map with keys :app-name :branch :tag... -- cgit v1.2.3