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 and Abdeali099 committed May 3, 2024
1 parent d71f3c5 commit 06de129
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 06de129

Please sign in to comment.