git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Push to origin failed

From
JSJohannes Schneider <mailings@cedarsoft.com>
Date
Jan 19, 2010, 14:41 UTC
Message-ID
<4B55C48F.2090005@cedarsoft.com>
Hi,

my Hudson isn't able to push master back to origin under some special circumstances:

The git-push command failed.
Command output:
To ssh://git.cedarsoft.com/git/com.cedarsoft.open
  ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to 
'ssh://git.cedarsoft.com/git/com.cedarsoft.open'

When I delete the .git directory and let Hudson do the same thing again, everything works well. Of course I have verified the obvious first:

git push
To ssh://git.cedarsoft.com/git/com.cedarsoft.open
  ! [rejected]        master -> master (non-fast forward)
error: failed to push some refs to 
'ssh://git.cedarsoft.com/git/com.cedarsoft.open'
git log
commit 1e3d3d2c1a38cae75d60bbcd8bc739ed00597ad3
Author: Hudson <hudson@cedarsoft.com>
Date:   Tue Jan 19 15:25:10 2010 +0100
     [maven-release-plugin] prepare release open-2.0.6
commit 9b8b395a4f9f725aa82be61474835fd1f7d009a7
Author: Johannes Schneider <js@cedarsoft.com>
Date:   Tue Jan 19 12:00:14 2010 +0100
     license-plugin: added excludes

On my local computer, I have called "git pull" on master and then tried git log with that result:

git log
commit 9b8b395a4f9f725aa82be61474835fd1f7d009a7
Author: Johannes Schneider <js@cedarsoft.com>
Date:   Tue Jan 19 12:00:14 2010 +0100
     license-plugin: added excludes

So I don't see any reason why the push failed. Any ideas? How can I investigate this issue further? Obviously I don't know enough about Git, so any hints are welcome...

Thanks,
Johannes
Next: Sverre Rabbelier
Message 1 of 2 in “Push to origin failed”
  1. Johannes SchneiderJan 19, 2010
  2. Sverre RabbelierJan 19, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.