defunkt/hub — Issue #113: `init': undefined method `name' for nil:NilClass (NoMethodError)
Author: joedynamite
Created: 2011-12-06 03:11:49+00:00
State: open

When I run the `hub init -g` command in a directory I get the following error:

/usr/local/bin/hub:724:in `init': undefined method `name' for nil:NilClass (NoMethodError)
from /usr/local/bin/hub:473:in `send'
from /usr/local/bin/hub:473:in `run'
from /usr/local/bin/hub:1215:in `initialize'
from /usr/local/bin/hub:1219:in `new'
from /usr/local/bin/hub:1219:in `execute'
from /usr/local/bin/hub:1268

I'm running **Ruby 1.9.2 p290** installed with RVM, **Git 1.7.7.4**, and **Hub 1.7.0** both installed with homebrew.

It works fine on my other computer running the same version of Ruby with **Git 1.7.6.1** and **Hub 1.6.1**. They're set up almost the exact same way otherwise.

Using regular `git init` works, so I assume it was an issue with Hub and not Git.