git-pivotal
git-pivotal copied to clipboard
git info crashes when not in a feature/bug branch
git info crashes when not in a feature/bug branch
It also crashes for me while in the feature branch.
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
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.