* Push to origin failed
@ 2010-01-19 14:41 Johannes Schneider
2010-01-19 15:05 ` Sverre Rabbelier
0 siblings, 1 reply; 2+ messages in thread
From: Johannes Schneider @ 2010-01-19 14:41 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Push to origin failed
2010-01-19 14:41 Push to origin failed Johannes Schneider
@ 2010-01-19 15:05 ` Sverre Rabbelier
0 siblings, 0 replies; 2+ messages in thread
From: Sverre Rabbelier @ 2010-01-19 15:05 UTC (permalink / raw)
To: Johannes Schneider; +Cc: git
Heya,
On Tue, Jan 19, 2010 at 15:41, Johannes Schneider
<mailings@cedarsoft.com> wrote:
> ! [rejected] master -> master (non-fast forward)
There's your problem. You could solve it by instead doing 'git push
-f' (telling it to push even though it's not a fast-forward), but that
would make it hard for those downstream of that repository. So, read
up on 'fast-forwards' and why it's bad to push if it's not a
fast-forward, but mainly figure out why you have a fast-forward in the
first place. It could very well be that you need to fetch and merge
(or fetch and rebase) first.
--
Cheers,
Sverre Rabbelier
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-19 15:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-19 14:41 Push to origin failed Johannes Schneider
2010-01-19 15:05 ` Sverre Rabbelier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).