Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Raises error when the branch doesn't exists

#1

>> 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'

Reported by Magnus Holm · September 27th, 2008 @ 03:47 PM

State: resolved
Milestone: 0.1.2
Assigned to: Magnus Holm Magnus Holm

Activity

  1. Magnus Holm
    Magnus Holm
    • State changed from new to resolved

    (from [157e2d3d5e882811aa0cc9ecc342a2e64d935e35]) Whops. Make it handle non-existing branches [#1 Raises error when the branch doesn't exists state:resolved] http://github.com/judofyr/gash/c...

    September 27th, 2008 @ 04:03 PM

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.