mattsears/gaga — pull request #2 by nreckart (2011-12-01 18:53:09+00:00)
Title: Fix errors the occur when attempting to use a Gaga instance that is created without specifying a branch.

Creating a Gaga instance without specifying a branch, and then attempting to use that instance results in a Grit error.

Errno::EISDIR: Is a directory - /tmp/gaga_test/.git/refs/heads/

For example:

```ruby
gaga = Gaga.new(:repo => '/path/to/repo')
gaga['testkey'] = 'testvalue' # Generates the error.
```

The Gaga.branch method just needs a tweak.