* "svn switch" equivalent when using git-svn -- git-filter-branch?
@ 2007-07-09 12:36 David Kastrup
2007-07-10 5:40 ` Eric Wong
0 siblings, 1 reply; 5+ messages in thread
From: David Kastrup @ 2007-07-09 12:36 UTC (permalink / raw)
To: git
Hi,
an upstream svn repository that I access with git-svn has moved. I
seem to be too stupid to use git-filter-branch and/or .git/config
and/or git-reset to make my git mirror follow the switch.
Any pointers?
--
David Kastrup
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "svn switch" equivalent when using git-svn -- git-filter-branch?
2007-07-09 12:36 "svn switch" equivalent when using git-svn -- git-filter-branch? David Kastrup
@ 2007-07-10 5:40 ` Eric Wong
2007-07-10 8:24 ` David Kastrup
0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2007-07-10 5:40 UTC (permalink / raw)
To: David Kastrup; +Cc: git
David Kastrup <dak@gnu.org> wrote:
> Hi,
>
> an upstream svn repository that I access with git-svn has moved. I
> seem to be too stupid to use git-filter-branch and/or .git/config
> and/or git-reset to make my git mirror follow the switch.
Just changing the url key in the [svn-remote] section of the .git/config
file should be enough.
You'll probably need to fetch at least one revision from the new URL
before being able to dcommit, though.
I've never looked at git-filter-branch, either.
--
Eric Wong
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "svn switch" equivalent when using git-svn -- git-filter-branch?
2007-07-10 5:40 ` Eric Wong
@ 2007-07-10 8:24 ` David Kastrup
2007-07-10 9:00 ` Eric Wong
0 siblings, 1 reply; 5+ messages in thread
From: David Kastrup @ 2007-07-10 8:24 UTC (permalink / raw)
To: git
Eric Wong <normalperson@yhbt.net> writes:
> David Kastrup <dak@gnu.org> wrote:
>> Hi,
>>
>> an upstream svn repository that I access with git-svn has moved. I
>> seem to be too stupid to use git-filter-branch and/or .git/config
>> and/or git-reset to make my git mirror follow the switch.
>
> Just changing the url key in the [svn-remote] section of the .git/config
> file should be enough.
>
> You'll probably need to fetch at least one revision from the new URL
> before being able to dcommit, though.
git-fetch works, but git-rebase -l still complains:
git-svn rebase -l
Unable to determine upstream SVN information from working tree history
And consequently I can't actually update.
--
David Kastrup
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "svn switch" equivalent when using git-svn -- git-filter-branch?
2007-07-10 8:24 ` David Kastrup
@ 2007-07-10 9:00 ` Eric Wong
2007-07-10 9:38 ` David Kastrup
0 siblings, 1 reply; 5+ messages in thread
From: Eric Wong @ 2007-07-10 9:00 UTC (permalink / raw)
To: David Kastrup; +Cc: git
David Kastrup <dak@gnu.org> wrote:
> Eric Wong <normalperson@yhbt.net> writes:
>
> > David Kastrup <dak@gnu.org> wrote:
> >> Hi,
> >>
> >> an upstream svn repository that I access with git-svn has moved. I
> >> seem to be too stupid to use git-filter-branch and/or .git/config
> >> and/or git-reset to make my git mirror follow the switch.
> >
> > Just changing the url key in the [svn-remote] section of the .git/config
> > file should be enough.
> >
> > You'll probably need to fetch at least one revision from the new URL
> > before being able to dcommit, though.
>
> git-fetch works, but git-rebase -l still complains:
>
> git-svn rebase -l
> Unable to determine upstream SVN information from working tree history
>
> And consequently I can't actually update.
Does manually specifying the remote name work?
Try bypassing the auto-detection of "git-svn rebase" and just using
"git rebase <remote name>"
--
Eric Wong
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: "svn switch" equivalent when using git-svn -- git-filter-branch?
2007-07-10 9:00 ` Eric Wong
@ 2007-07-10 9:38 ` David Kastrup
0 siblings, 0 replies; 5+ messages in thread
From: David Kastrup @ 2007-07-10 9:38 UTC (permalink / raw)
To: git
Eric Wong <normalperson@yhbt.net> writes:
> David Kastrup <dak@gnu.org> wrote:
>> Eric Wong <normalperson@yhbt.net> writes:
>>
>> > David Kastrup <dak@gnu.org> wrote:
>> >> Hi,
>> >>
>> >> an upstream svn repository that I access with git-svn has moved. I
>> >> seem to be too stupid to use git-filter-branch and/or .git/config
>> >> and/or git-reset to make my git mirror follow the switch.
>> >
>> > Just changing the url key in the [svn-remote] section of the .git/config
>> > file should be enough.
>> >
>> > You'll probably need to fetch at least one revision from the new URL
>> > before being able to dcommit, though.
>>
>> git-fetch works, but git-rebase -l still complains:
>>
>> git-svn rebase -l
>> Unable to determine upstream SVN information from working tree history
>>
>> And consequently I can't actually update.
>
> Does manually specifying the remote name work?
>
> Try bypassing the auto-detection of "git-svn rebase" and just using
> "git rebase <remote name>"
Well, a combination of changing the config, doing a fetch, changing
the config back again, doing the rebase, and changing the config again
seems to have done the trick for now.
I'll have to see how this works in future. Maybe I will have to
refetch everything anyhow as upstream has just decided to create a
trunk directory (and presumably tags and branches will follow). I am
not sure I am up to performing the correct steps for adapting to this.
--
David Kastrup
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-07-10 9:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-09 12:36 "svn switch" equivalent when using git-svn -- git-filter-branch? David Kastrup
2007-07-10 5:40 ` Eric Wong
2007-07-10 8:24 ` David Kastrup
2007-07-10 9:00 ` Eric Wong
2007-07-10 9:38 ` David Kastrup
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).