Skip to content
New issue

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

Checkout non-detatched mode #198

Closed
Jarlotee opened this issue Jun 19, 2018 · 3 comments · Fixed by #391
Closed

Checkout non-detatched mode #198

Jarlotee opened this issue Jun 19, 2018 · 3 comments · Fixed by #391

Comments

@Jarlotee
Copy link

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?

@M0nsieurChat
Copy link

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

@Finkregh
Copy link

Finkregh commented Jan 28, 2019

is this under consideration? This has been open for a half a year now and did not get any feedback :(

@vito
Copy link
Member

vito commented Jan 28, 2019

Seems like an easy feature to PR. The resource could write to .git/branch just like it writes to .git/ref already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants