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

get_git_head_revision does not work if we are not on named branch. #3

Closed
lukaszlew opened this issue Dec 13, 2010 · 2 comments
Closed

Comments

@lukaszlew
Copy link

If we directly invoke: git checkout HASH and if there is no named branch there then get_git_head_revision fails because .git/HEAD contains hash directly.

@rpavlik
Copy link
Owner

rpavlik commented Dec 13, 2010

Thanks for catching that! I've just pushed a fix - was able to reproduce the bug and this did fix it. Let me know if you find any other issues, and/or if you have any general impressions (success stories welcome!) about using these modules.

@alinagrigoras
Copy link

Hi,

This is still not working for tags.
If you run just git checkout TAG then you are in detached mode.

Cheers
Alina

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

No branches or pull requests

3 participants