git-pivotal icon indicating copy to clipboard operation
git-pivotal copied to clipboard

git info crashes when not in a feature/bug branch

Open knoopx opened this issue 14 years ago • 3 comments

git info crashes when not in a feature/bug branch

knoopx avatar Jul 11 '11 09:07 knoopx

It also crashes for me while in the feature branch.

rafaldyrda avatar Aug 27 '11 02:08 rafaldyrda

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

rypalmer avatar Oct 25 '11 16:10 rypalmer

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.

robbanl avatar Nov 22 '11 09:11 robbanl