defunkt/hub — Issue #145: hub browse doesn't work when not on a branch
Author: urkle
Created: 2012-02-28 18:39:39+00:00
State: open

I have a github project cloned locally

```
[urkle@BigMac ~]$ git clone https://github.com/johnezang/JSONKit.git
```

I then check out the 1.4 release tag (this is actually a submodule for another project)

```
[urkle@BigMac ~]$ cd JSONKit
[urkle@BigMac JSONKit]$ git checkout v1.4
```

I then run hub browse

```
[urkle@BigMac JSONKit]$ hub browse
/Users/urkle/bin/hub:140:in `upstream_project': undefined method `upstream' for nil:NilClass (NoMethodError)
from /Users/urkle/bin/hub:147:in `current_project'
from /Users/urkle/bin/hub:989:in `browse'
from /Users/urkle/bin/hub:1184:in `browse_command'
from /Users/urkle/bin/hub:982:in `browse'
from /Users/urkle/bin/hub:607:in `send'
from /Users/urkle/bin/hub:607:in `run'
from /Users/urkle/bin/hub:1514:in `initialize'
from /Users/urkle/bin/hub:1518:in `new'
from /Users/urkle/bin/hub:1518:in `execute'
from /Users/urkle/bin/hub:1567
```

if I checkout master it works fine.