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 info crashes when not in a feature/bug branch #28

Open
knoopx opened this issue Jul 11, 2011 · 3 comments
Open

git info crashes when not in a feature/bug branch #28

knoopx opened this issue Jul 11, 2011 · 3 comments
Labels

Comments

@knoopx
Copy link

knoopx commented Jul 11, 2011

git info crashes when not in a feature/bug branch

@rafaldyrda
Copy link

It also crashes for me while in the feature branch.

@rypalmer
Copy link

Same for me. Here's what I get:

rypalmer$ git info
/Library/Ruby/Gems/1.8/gems/git-pivotal-0.8.2/bin/../lib/commands/info.rb:14:in run!': undefined methodname' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/git-pivotal-0.8.2/bin/git-info:7
from /usr/bin/git-info:19:in `load'
from /usr/bin/git-info:19

@robbanl
Copy link

robbanl commented Nov 22, 2011

Stumbled upon this problem today myself. From what I can see it's because the branch name doesn't contain a Pivotal Tracker story id.

I've written a pretty simple fix for this to prevent the script from dieing without a usable error message.

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

No branches or pull requests

4 participants