threads / discuss / 18604

git svn fails to work

Subject: git svn fails to work

## tl;dr

7 messages between Mar 28, 2009 and Mar 30, 2009.

replies: 6people: 4as markdown or json

Aaron Gray· Mar 28, 2009, 17:32 UTC · lore

I have been tying for a week to get git svn to work. If i do a 'git clone' and if falls over 'git svn fetch' picks up from where it left off, but on completion I can only see the older stuff if at all and a 'git clone rebase' eithr shoud up unreconsilable differences or refuses to execute the command at all, gust giving uphelpfull help afaics.

Does anyone have a real work how to for git svn ?
Otherwise I am giving up and either going back to svn or over to mercurial.
Aaron
Dmitry Potapov· Mar 28, 2009, 20:51 UTC · re: Aaron Gray · lore

Re: git svn fails to work

On Sat, Mar 28, 2009 at 8:48 PM, Aaron Gray <aaronngray.lists@googlemail.com> wrote:

Show 5 quoted lines
> I have been tying for a week to get git svn to work. If i do a 'git clone'
> and if falls over 'git svn fetch' picks up from where it left off, but on
> completion I can only see the older stuff if at all and a 'git clone rebase'
> eithr shoud up unreconsilable differences or refuses to execute the command
> at all, gust giving uphelpfull help afaics.

I am afraid if you expect anyone to help you with you, you have to spend a little more time to describe your problem. You have not mentioned what version of Git you use, what operating system, what is layout of your SVN repo, what commands and with what options you used and what was their output. Without that information no one will be able to help you...

> Otherwise I am giving up and either going back to svn or over to mercurial.

Yeah, right... These kind of threats will make people who want to help to come running....

Dmitry
Aaron Gray· Mar 28, 2009, 20:51 UTC · re: Dmitry Potapov · lore

Re: git svn fails to work

Show 22 quoted lines
> On Sat, Mar 28, 2009 at 8:48 PM, Aaron Gray
> <aaronngray.lists@googlemail.com> wrote:
>> I have been tying for a week to get git svn to work. If i do a 'git
>> clone'
>> and if falls over 'git svn fetch' picks up from where it left off, but on
>> completion I can only see the older stuff if at all and a 'git clone
>> rebase'
>> eithr shoud up unreconsilable differences or refuses to execute the
>> command
>> at all, gust giving uphelpfull help afaics.
>
> I am afraid if you expect anyone to help you with you, you have to spend
> a little more time to describe your problem. You have not mentioned what
> version of Git you use, what operating system, what is layout of your SVN
> repo, what commands and with what options you used and what was their
> output. Without that information no one will be able to help you...
>
>> Otherwise I am giving up and either going back to svn or over to
>> mercurial.
>
> Yeah, right... These kind of threats will make people who want to help to
> come running....

Sorry, but I am very frustrated with the whole thing, there is not real user guides for git-svn other that third party ones which seem to be wrong.

I am using Fedora 10, GIT 1.6.0.6, the svn repo is standard layout although I only want trunk, it here :-

    svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
This is quite a big repository 65000 or more revisions.
The commands
    git svn clone http://llvm.org/svn/llvm-project/llvm/trunk
when connection fails I do a :-
    git svn fetch
gitweb is not updating at all to show any change in the repository.
Aaron
Jacob Helwig· Mar 28, 2009, 22:01 UTC · re: Aaron Gray · lore

Re: git svn fails to work

On Sat, Mar 28, 2009 at 14:43, Aaron Gray <aaronngray.lists@googlemail.com> wrote:

Show 51 quoted lines
>> On Sat, Mar 28, 2009 at 8:48 PM, Aaron Gray
>> <aaronngray.lists@googlemail.com> wrote:
>>>
>>> I have been tying for a week to get git svn to work. If i do a 'git
>>> clone'
>>> and if falls over 'git svn fetch' picks up from where it left off, but on
>>> completion I can only see the older stuff if at all and a 'git clone
>>> rebase'
>>> eithr shoud up unreconsilable differences or refuses to execute the
>>> command
>>> at all, gust giving uphelpfull help afaics.
>>
>> I am afraid if you expect anyone to help you with you, you have to spend
>> a little more time to describe your problem. You have not mentioned what
>> version of Git you use, what operating system, what is layout of your SVN
>> repo, what commands and with what options you used and what was their
>> output. Without that information no one will be able to help you...
>>
>>> Otherwise I am giving up and either going back to svn or over to
>>> mercurial.
>>
>> Yeah, right... These kind of threats will make people who want to help to
>> come running....
>
> Sorry, but I am very frustrated with the whole thing, there is not real user
> guides for git-svn other that third party ones which seem to be wrong.
>
> I am using Fedora 10, GIT 1.6.0.6, the svn repo is standard layout although
> I only want trunk, it here :-
>
>   svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
>
> This is quite a big repository 65000 or more revisions.
>
> The commands
>
>   git svn clone http://llvm.org/svn/llvm-project/llvm/trunk
>
> when connection fails I do a :-
>
>   git svn fetch
>
> gitweb is not updating at all to show any change in the repository.
>
> Aaron
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

gitweb will only show your local branches. git svn fetch will update the remote branches associated with svn. You'll need to create a local tracking branch for the svn remote branch.

Aaron Gray· Mar 28, 2009, 23:10 UTC · re: Jacob Helwig · lore

Getting GIT+git-daemon+gitweb working properly on Fedora 10

gitweb is showing a repository last changed on the front page 2 days ago but in the summary is showing a change 3 hours ago.

I am getting different behaviours from different repositories. on gitweb and in their base directories some have file some donot. The ones with files have not been checked out and will not commit either.

What I need is a well written set of instructions on how to import both small and large SVN repositories and how to serve them and how to get gitweb to reflect actually what is going on.

Thanks,
Aaron
Andreas Ericsson· Mar 30, 2009, 09:24 UTC · re: Aaron Gray · lore

Re: Getting GIT+git-daemon+gitweb working properly on Fedora 10

Aaron Gray wrote:
Show 11 quoted lines
> gitweb is showing a repository last changed on the front page 2 days ago 
> but in the summary is showing a change 3 hours ago.
> 
> I am getting different behaviours from different repositories. on gitweb 
> and in their base directories some have file some donot. The ones with 
> files have not been checked out and will not commit either.
> 
> What I need is a well written set of instructions on how to import both 
> small and large SVN repositories and how to serve them and how to get 
> gitweb to reflect actually what is going on.
> 
What does google provide on the subject? What search-terms did you try?
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
Dmitry Potapov· Mar 29, 2009, 04:38 UTC · lore

Re: git svn fails to work

On Sun, Mar 29, 2009 at 12:42 AM, Aaron Gray <aaronngray.lists@googlemail.com> wrote:

Show 10 quoted lines
>
> The commands
>
>   git svn clone http://llvm.org/svn/llvm-project/llvm/trunk
>
> when connection fails I do a :-
>
>   git svn fetch
>
> gitweb is not updating at all to show any change in the repository.

"git svn fetch" only updates the remote branch. In the same way as "git fetch" only fetches changes from the remote repo and updates the remote branch. You can see only local branches with gitweb.

So, you may want to run "git svn rebase" instead. (Note: the command is "git svn rebase" and not "git clone rebase" as you wrote earlier).

"git svn rebase" fetches all changes as "git svn fetch" does but then it
rebases your local commits on the current branch on top of the svn
remote branch. If you do not have any local commits then it just
updates the top of the current branch to be the same.
Note:  Running "git svn rebase" requires that your working tree is
clean (no uncommitted changes).
You can always see all branches and what changes they have by
 running:
   gitk --all &
Dmitry

← back to recent threads