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

git.branch crashes in detached head #10

Open
epmenard opened this issue Mar 10, 2014 · 0 comments
Open

git.branch crashes in detached head #10

epmenard opened this issue Mar 10, 2014 · 0 comments

Comments

@epmenard
Copy link

When in a detached head state, retrieving the branch name crashes the app. I would have expected the method to return null.

epmenard@ip-10-145-205-239:/data/dstage/p1dev/.yeti> git branch

  • (no branch)
    master
    test

/usr/local/yeti/app/node_modules/gift/lib/ref.js:78
_ref1 = /ref: refs/heads/([^\s]+)/.exec(data),m = _ref1[0], branch =

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

1 participant