git svn teething problems - initial clone okay - fetches not working
Hi,
I am a newbie to git, so be warned :)
I have installed git-daemon, and gitweb on an F10 server.
Basically managed to do a 'git svn clone' on LLVM, it took 11 hours !
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
I am obviously missing something. The only documentation I could find on 'git svn' was the command line help and 'man git-svn'.
Hope you can help,
Aaron
Quoted 3 lines · Aaron Gray
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
You need a:
$ git svn rebase
to fetch *and* merge the changes into the local tracking branch (master by default).
Pascal.
Signature · 8 lines
--|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
Quoted 8 lines
Quoted 3 lines · Aaron Gray
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
You need a:
$ git svn rebase
I tried that.
Quoted 2 lines
to fetch *and* merge the changes into the local tracking branch (master by default).
Pascal,
Could you give me a full set of instructions for importing :-
http://llvm.org/svn/llvm-project/llvm
Thanks,
Aaron
Quoted 12 lines · Aaron Gray
Quoted 9 lines
Quoted 4 lines · Aaron Gray
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
You need a:
$ git svn rebaseI tried that.
Quoted 9 lines
Quoted 2 lines
to fetch *and* merge the changes into the local tracking branch (master by default).
Pascal,
Could you give me a full set of instructions for importing :-
It sounds like your working directory might be dirty. Are you sure all of your changes have been committed?
Signature · 6 lines
In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail
Quoted 12 lines · Aaron Gray
Quoted 9 lines
Quoted 4 lines · Aaron Gray
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
You need a:
$ git svn rebaseI tried that.
Quoted 9 lines
Quoted 2 lines
to fetch *and* merge the changes into the local tracking branch (master by default).
Pascal,
Could you give me a full set of instructions for importing :-
It sounds like your working directory might be dirty. Are you sure all of your changes have been committed?
Probably. I am getting an error on doing 'git svn rebase' :-
many filenames * : needs update update---index --refresh: command returned error: 1
Could you please give me the command to import the above SVN repository so I can redo the thing from scratch.
Many thanks in advance,
Aaron
Quoted 4 lines · Aaron Gray
Probably. I am getting an error on doing 'git svn rebase' :-
many filenames * : needs update update---index --refresh: command returned error: 1
So before the rebase try:
$ git reset --hard HEAD
then
$ git svn rebase
Quoted 2 lines
Could you please give me the command to import the above SVN repository so I can redo the thing from scratch.
What you have done (at least described here in this forum) seems correct.
Pascal.
Signature · 8 lines
--|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B
Quoted 6 lines · Pascal Obry
Quoted 4 lines · Aaron Gray
Probably. I am getting an error on doing 'git svn rebase' :-
many filenames * : needs update update---index --refresh: command returned error: 1
Quoted 8 lines
So before the rebase try:
$ git reset --hard HEADthen
$ git svn rebase
To be clear, this will destroy any non-committed changes in your working copy so if you in fact are erroneously getting those errors because you forgot to do a git add .; git commit on files you've changed that you _meant_ to change, then you will lose those changes. What's the output of git status?
Signature · 6 lines
In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail
I had a lot of success when I was more actively using git svn with git svn rebase. Just be sure that you're doing your work in local branches and then merging back into the main trunk branches that are tracking the svn repo, that way you can always get the latest changes from your clean trunk branch.
Quoted 24 lines · Aaron Gray
Hi,
I am a newbie to git, so be warned :)
I have installed git-daemon, and gitweb on an F10 server.
Basically managed to do a 'git svn clone' on LLVM, it took 11 hours !
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
I am obviously missing something. The only documentation I could find on 'git svn' was the command line help and 'man git-svn'.
Hope you can help,
Aaron
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail
Quoted 5 lines
I had a lot of success when I was more actively using
git svnwithgit svn rebase. Just be sure that you're doing your work in local branches and then merging back into the main trunk branches that are tracking the svn repo, that way you can always get the latest changes from your clean trunk branch.
I tried a rebase and filenames with 'needs update' after them flew by then an error message :-
update-index --refresh: command returned error: 1
Aaron
Quoted 24 lines · Aaron Gray
Hi,
I am a newbie to git, so be warned :)
I have installed git-daemon, and gitweb on an F10 server.
Basically managed to do a 'git svn clone' on LLVM, it took 11 hours !
Anyway I am having the problem that I can do a 'git svn fetch' and I see changes coming in. But the gitweb and another git clone from it do not reflect those changes. The repository is still showing its two days old.
I am obviously missing something. The only documentation I could find on 'git svn' was the command line help and 'man git-svn'.
Hope you can help,
Aaron
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 6 lines
In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail