From 1751b2db5bcedc33276026f3283a4ff1f0d5ac04 Mon Sep 17 00:00:00 2001 From: Fritz Date: Mon, 29 Apr 2024 12:52:19 +0200 Subject: [PATCH] fix: Switched to native GIT way to lookup branch names (#1553) --- bench/utils/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bench/utils/app.py b/bench/utils/app.py index 5d3ec6f4..07b8edc7 100644 --- a/bench/utils/app.py +++ b/bench/utils/app.py @@ -172,7 +172,7 @@ def get_current_branch(app, bench_path="."): from bench.utils import get_cmd_output repo_dir = get_repo_dir(app, bench_path=bench_path) - return get_cmd_output("basename $(git symbolic-ref -q HEAD)", cwd=repo_dir) + return get_cmd_output("git symbolic-ref -q --short HEAD", cwd=repo_dir) @lru_cache(maxsize=5)