1) use a different way to get the git branch: the difference with git symbolic-ref is that this is supposed to always succeed, so we don't need to catch the exception to detect the detached head case; 2) try to report the error to the user somehow, in case a command fails
1) use a different way to get the git branch: the difference with git symbolic-ref is that this is supposed to always succeed, so we don't need to catch the exception to detect the detached head case; 2) try to report the error to the user somehow, in case a command fails

SectorLabs/pytest-benchmark,thedrow/pytest-benchmark,ionelmc/pytest-benchmark