#1 ✓resolved
Magnus Holm

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

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.

New-ticket Create new ticket

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

Pages