git-resource
git-resource copied to clipboard
Checkout non-detatched mode
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?
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
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.