push fail

2014-03-17 Thread shawn wilson
How do I get more info here (and hopefully resolve this)? % git push To ssh://server/foo/repo.git ! [rejected]test - test (non-fast-forward) error: failed to push some refs to 'ssh://server/foo/repo.git' -- To unsubscribe from this list: send the line unsubscribe git in the body of a

Re: push fail

2014-03-17 Thread Dragos Foianu
shawn wilson ag4ve.us at gmail.com writes: How do I get more info here (and hopefully resolve this)? % git push To ssh://server/foo/repo.git ! [rejected]test - test (non-fast-forward) error: failed to push some refs to 'ssh://server/foo/repo.git' non-fast-forward means that

Re: push fail

2014-03-17 Thread Matthieu Moy
shawn wilson ag4ve...@gmail.com writes: How do I get more info here (and hopefully resolve this)? % git push To ssh://server/foo/repo.git ! [rejected]test - test (non-fast-forward) error: failed to push some refs to 'ssh://server/foo/repo.git' You probably have a configuration

Re: push fail

2014-03-17 Thread shawn wilson
Thanks. Yeah, I should've thought to do a pull On Mon, Mar 17, 2014 at 9:34 AM, Dragos Foianu dragos.foi...@gmail.com wrote: shawn wilson ag4ve.us at gmail.com writes: How do I get more info here (and hopefully resolve this)? % git push To ssh://server/foo/repo.git ! [rejected]

[PATCH 2/3] push: fail early with detached HEAD and current

2013-05-29 Thread Ramkumar Ramachandra
Setting push.default to current adds the refspec HEAD for the transport layer to handle. If HEAD doesn't resolve to a branch (and since no refspec rhs is specified), the push fails after some time with a cryptic error message: $ git push error: unable to push to unqualified destination: HEAD

Re: [PATCH 2/3] push: fail early with detached HEAD and current

2013-05-29 Thread Junio C Hamano
Ramkumar Ramachandra artag...@gmail.com writes: Setting push.default to current adds the refspec HEAD for the transport layer to handle. If HEAD doesn't resolve to a branch (and since no refspec rhs is specified), the push fails after some time with a cryptic error message: $ git push

Re: [PATCH 2/3] push: fail early with detached HEAD and current

2013-05-29 Thread Ramkumar Ramachandra
Junio C Hamano wrote: case PUSH_DEFAULT_CURRENT: + if (!branch) + die(_(message_detached_head_die), remote-name); add_refspec(HEAD); break; Would it hurt to do if (!branch_get(NULL)) die(...);

Re: [PATCH 2/3] push: fail early with detached HEAD and current

2013-05-29 Thread Junio C Hamano
Ramkumar Ramachandra artag...@gmail.com writes: Junio C Hamano wrote: case PUSH_DEFAULT_CURRENT: + if (!branch) + die(_(message_detached_head_die), remote-name); add_refspec(HEAD); break; Would it hurt to do if

[PATCH 2/3] push: fail early with detached HEAD and current

2013-05-21 Thread Ramkumar Ramachandra
Setting push.default to current adds the refspec HEAD for the transport layer to handle. If HEAD doesn't resolve to a branch (and since no refspec rhs is specified), the push fails after some time with a cryptic error message: $ git push error: unable to push to unqualified destination: HEAD