2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-13 16:56:33 +00:00

fix: Switched to native GIT way to lookup branch names (#1553)

This commit is contained in:
Fritz 2024-04-29 12:52:19 +02:00 committed by GitHub
parent 5a0922d991
commit 1751b2db5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)