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 wrote: > shawn wilson 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 (no

Re: push fail

2014-03-17 Thread Matthieu Moy
shawn wilson 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 that disables

Re: push fail

2014-03-17 Thread Dragos Foianu
shawn wilson 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

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: [PATCH 2/3] push: fail early with detached HEAD and current

2013-05-29 Thread Ramkumar Ramachandra
Here: put this at the end of the series and autosquash. -- 8< -- From: Ramkumar Ramachandra Date: Thu, 30 May 2013 01:29:59 +0530 Subject: [PATCH] fixup! HEAD~2 Signed-off-by: Ramkumar Ramachandra --- builtin/push.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/

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

2013-05-29 Thread Junio C Hamano
Ramkumar Ramachandra 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 >> >>

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)) >

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

2013-05-29 Thread Junio C Hamano
Ramkumar Ramachandra 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 > error:

[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: H

[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: H