* push to backup repo periodically fails with "not fast forward"
@ 2008-12-22 16:24 davetron5000
2008-12-22 17:11 ` Felipe Contreras
0 siblings, 1 reply; 5+ messages in thread
From: davetron5000 @ 2008-12-22 16:24 UTC (permalink / raw)
To: git
I have a repo on another disk that I ONLY use to backup my in-use
local repo. I have a post-commit hook that does the push (git push --
all remote-repo-name)
>git commit -a -m 'some change'
Counting objects: 71, done.
Compressing objects: 100% (26/26), done.
Writing objects: 100% (29/29), 2.31 KiB, done.
Total 29 (delta 12), reused 0 (delta 0)
Unpacking objects: 100% (29/29), done.
To file:///Volumes/Git/pose/main
22d7f10..0037aaf bimonthly-frequency -> bimonthly-frequency
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to 'file:///Volumes/Git/pose/main'
Created commit 0037aaf: Removed assertion that made no sense.
1 files changed, 0 insertions(+), 2 deletions(-)
I'm using git as a front-end to Subversion, but I can't figure out why
this is happening.
The repo at /Volumes/Git/pose/main is NEVER pulled from or pushed to
by anything other than my hook. I can't understand why any push to it
would NOT be a fast-forward.
Any ideas how I can figure out what's going on?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push to backup repo periodically fails with "not fast forward"
2008-12-22 16:24 push to backup repo periodically fails with "not fast forward" davetron5000
@ 2008-12-22 17:11 ` Felipe Contreras
2008-12-22 17:15 ` David Copeland
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Contreras @ 2008-12-22 17:11 UTC (permalink / raw)
To: davetron5000; +Cc: git
On Mon, Dec 22, 2008 at 6:24 PM, davetron5000 <davetron5000@gmail.com> wrote:
> I have a repo on another disk that I ONLY use to backup my in-use
> local repo. I have a post-commit hook that does the push (git push --
> all remote-repo-name)
>
>>git commit -a -m 'some change'
> Counting objects: 71, done.
> Compressing objects: 100% (26/26), done.
> Writing objects: 100% (29/29), 2.31 KiB, done.
> Total 29 (delta 12), reused 0 (delta 0)
> Unpacking objects: 100% (29/29), done.
> To file:///Volumes/Git/pose/main
> 22d7f10..0037aaf bimonthly-frequency -> bimonthly-frequency
> ! [rejected] master -> master (non-fast forward)
> error: failed to push some refs to 'file:///Volumes/Git/pose/main'
> Created commit 0037aaf: Removed assertion that made no sense.
> 1 files changed, 0 insertions(+), 2 deletions(-)
>
> I'm using git as a front-end to Subversion, but I can't figure out why
> this is happening.
>
> The repo at /Volumes/Git/pose/main is NEVER pulled from or pushed to
> by anything other than my hook. I can't understand why any push to it
> would NOT be a fast-forward.
>
> Any ideas how I can figure out what's going on?
Do you rebase your original repo?
--
Felipe Contreras
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push to backup repo periodically fails with "not fast forward"
2008-12-22 17:11 ` Felipe Contreras
@ 2008-12-22 17:15 ` David Copeland
2008-12-22 17:19 ` Felipe Contreras
2008-12-22 18:27 ` Nicolas Pitre
0 siblings, 2 replies; 5+ messages in thread
From: David Copeland @ 2008-12-22 17:15 UTC (permalink / raw)
To: Felipe Contreras; +Cc: git
the original gets rebased from a git svn rebase on occasion; so I
guess that is causing things to not be fast-forward.
I guess all I really want to do is keep a duplicate copy of my repo
somewhere else. Should I just use --force in my hook, or abandon git
as the mechanism and use rsync?
Dave
On Mon, Dec 22, 2008 at 12:11 PM, Felipe Contreras
<felipe.contreras@gmail.com> wrote:
> On Mon, Dec 22, 2008 at 6:24 PM, davetron5000 <davetron5000@gmail.com> wrote:
>> I have a repo on another disk that I ONLY use to backup my in-use
>> local repo. I have a post-commit hook that does the push (git push --
>> all remote-repo-name)
>>
>>>git commit -a -m 'some change'
>> Counting objects: 71, done.
>> Compressing objects: 100% (26/26), done.
>> Writing objects: 100% (29/29), 2.31 KiB, done.
>> Total 29 (delta 12), reused 0 (delta 0)
>> Unpacking objects: 100% (29/29), done.
>> To file:///Volumes/Git/pose/main
>> 22d7f10..0037aaf bimonthly-frequency -> bimonthly-frequency
>> ! [rejected] master -> master (non-fast forward)
>> error: failed to push some refs to 'file:///Volumes/Git/pose/main'
>> Created commit 0037aaf: Removed assertion that made no sense.
>> 1 files changed, 0 insertions(+), 2 deletions(-)
>>
>> I'm using git as a front-end to Subversion, but I can't figure out why
>> this is happening.
>>
>> The repo at /Volumes/Git/pose/main is NEVER pulled from or pushed to
>> by anything other than my hook. I can't understand why any push to it
>> would NOT be a fast-forward.
>>
>> Any ideas how I can figure out what's going on?
>
> Do you rebase your original repo?
>
> --
> Felipe Contreras
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push to backup repo periodically fails with "not fast forward"
2008-12-22 17:15 ` David Copeland
@ 2008-12-22 17:19 ` Felipe Contreras
2008-12-22 18:27 ` Nicolas Pitre
1 sibling, 0 replies; 5+ messages in thread
From: Felipe Contreras @ 2008-12-22 17:19 UTC (permalink / raw)
To: David Copeland; +Cc: git
On Mon, Dec 22, 2008 at 7:15 PM, David Copeland <davetron5000@gmail.com> wrote:
> the original gets rebased from a git svn rebase on occasion; so I
> guess that is causing things to not be fast-forward.
>
> I guess all I really want to do is keep a duplicate copy of my repo
> somewhere else. Should I just use --force in my hook, or abandon git
> as the mechanism and use rsync?
I would manually do 'git push backup' at certain points since not all
my commits are meant to be backed up, specially on temporal feature
branches.
But --force should do the trick.
--
Felipe Contreras
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: push to backup repo periodically fails with "not fast forward"
2008-12-22 17:15 ` David Copeland
2008-12-22 17:19 ` Felipe Contreras
@ 2008-12-22 18:27 ` Nicolas Pitre
1 sibling, 0 replies; 5+ messages in thread
From: Nicolas Pitre @ 2008-12-22 18:27 UTC (permalink / raw)
To: David Copeland; +Cc: Felipe Contreras, git
On Mon, 22 Dec 2008, David Copeland wrote:
> the original gets rebased from a git svn rebase on occasion; so I
> guess that is causing things to not be fast-forward.
>
> I guess all I really want to do is keep a duplicate copy of my repo
> somewhere else. Should I just use --force in my hook, or abandon git
> as the mechanism and use rsync?
Using --force is definitively better than rsync.
Nicolas
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-12-22 18:29 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-22 16:24 push to backup repo periodically fails with "not fast forward" davetron5000
2008-12-22 17:11 ` Felipe Contreras
2008-12-22 17:15 ` David Copeland
2008-12-22 17:19 ` Felipe Contreras
2008-12-22 18:27 ` Nicolas Pitre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox