Skip to content

Commit

Permalink
fix: Switched to native GIT way to lookup branch names (frappe#1553)
Browse files Browse the repository at this point in the history
  • Loading branch information
fixundfertig123 authored Apr 29, 2024
1 parent 5a0922d commit 1751b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench/utils/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1751b2d

Please sign in to comment.