Invalid object name: 'HEAD..git@github.com'

381 views
Skip to first unread message

gre...@gmail.com

unread,
Apr 28, 2010, 6:15:34 AM4/28/10
to magit
Using magit HEAD. After trying to push my new branch to:

g...@github.com:greenrd/Coq-Equations.git

I get the error

Git exited abnormally with code 128.

in *Messages*, and

Unpulled commits:
fatal: Invalid object name 'HEAD..git@github.com'.

Unpushed commits:
fatal: Invalid object name 'g...@github.com'.

in *magit-status*, and

[branch "rebase1"]
remote = g...@github.com:greenrd/Coq-Equations.git

in my .git/config file. git is fine with this config - it pushes
correctly - but magit gets confused. I think I've seen this bug
before, but before I worked around it by simply removing the offending
line from my .git/config file.

Rémi Vanicat

unread,
Apr 28, 2010, 6:48:00 AM4/28/10
to gre...@gmail.com, magit
"gre...@greenrd.org" <gre...@gmail.com> writes:

> Using magit HEAD. After trying to push my new branch to:
>
> g...@github.com:greenrd/Coq-Equations.git
>
> I get the error
>
> Git exited abnormally with code 128.
>
> in *Messages*, and
>
> Unpulled commits:
> fatal: Invalid object name 'HEAD..git@github.com'.
>
> Unpushed commits:
> fatal: Invalid object name 'g...@github.com'.
>
> in *magit-status*, and
>
> [branch "rebase1"]
> remote = g...@github.com:greenrd/Coq-Equations.git

This seem strange, this seem to work better:

[remote "github"]
url = g...@github.com:greenrd/Coq-Equations.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "rebase1"]
remote = github
merge = refs/heads/master

or something similar.

Still, someone should probably investigate.


> in my .git/config file. git is fine with this config - it pushes
> correctly -

Here the problem is not to push, it is to list commit in one, and not in
the other. Do you do this ? How ?


--
Rémi Vanicat
Reply all
Reply to author
Forward
0 new messages