Skip to content

Commit

Permalink
Switched to native GIT way to lookup branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
fixundfertig123 committed Apr 20, 2024
1 parent 5a0922d commit a753ab3
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 a753ab3

Please sign in to comment.