Raises error when the branch doesn't exists
Reported by Magnus Holm | September 27th, 2008 @ 03:47 PM | in 0.1.2
>> wiki = Gash.new(".git", "wiki")
NoMethodError: undefined method `[]' for nil:NilClass
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:288:in `update!'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:369:in `each_line'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:369:in `git_tree'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:463:in `run_git'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:458:in `popen'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:458:in `run_git'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:404:in `git'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:368:in `git_tree'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:282:in `update!'
from /Library/Ruby/Gems/1.8/gems/gash-0.1.1/lib/gash.rb:267:in `initialize'
Comments and changes to this ticket
-
Magnus Holm September 27th, 2008 @ 04:03 PM
- State changed from new to resolved
(from [157e2d3d5e882811aa0cc9ecc342a2e64d935e35]) Whops. Make it handle non-existing branches [#1 state:resolved] http://github.com/judofyr/gash/c...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Access a Git-repo as a Hash
People watching this ticket
Referenced by
- 1 Raises error when the branch doesn't exists (from [157e2d3d5e882811aa0cc9ecc342a2e64d935e35]) Whops. ...