We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like currently git always checks out master in detached mode.
But I need to reference what branch has been selected for some automation scripts
Is there parameter to toggle the detached behavior?
The text was updated successfully, but these errors were encountered:
Hello,
We do experience the same issue, which is annoying for scripts that needs to know which branch has been selected like with
git rev-parse --abbrev-ref HEAD
Sorry, something went wrong.
is this under consideration? This has been open for a half a year now and did not get any feedback :(
Seems like an easy feature to PR. The resource could write to .git/branch just like it writes to .git/ref already.
.git/branch
.git/ref
Successfully merging a pull request may close this issue.
It looks like currently git always checks out master in detached mode.
But I need to reference what branch has been selected for some automation scripts
Is there parameter to toggle the detached behavior?
The text was updated successfully, but these errors were encountered: