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:
parent
5a0922d991
commit
1751b2db5b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user