defunkt/hub — Issue #141: "hub pull-request" Oddities
Author: bryanveloso
Created: 2012-02-16 01:28:35+00:00
State: open

Reproduction:

* Create a branch using `git checkout -b blahblah`.
* Make a few commits.
* Try and run `[git|hub] pull-request`.
* Get the following error:

```
/usr/local/bin/hub:323:in `remote_name': can't get remote name from "refs/heads/master" (RuntimeError)
from /usr/local/bin/hub:141:in `upstream_project'
from /usr/local/bin/hub:147:in `current_project'
from /usr/local/bin/hub:622:in `pull_request'
from /usr/local/bin/hub:607:in `send'
from /usr/local/bin/hub:607:in `run'
from /usr/local/bin/hub:1514:in `initialize'
from /usr/local/bin/hub:1518:in `new'
from /usr/local/bin/hub:1518:in `execute'
from /usr/local/bin/hub:1567
```
:trollface:

Resolution:

* Go into `.git/config`.

```
[branch "blahblah"]
remote = .
merge = refs/heads/master
```

* Change it to this:

```
[branch "blahblah"]
remote = origin
merge = refs/heads/blahblah
```

The command works. :+1: