Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git svn fetch retrieving only one revision at a time

I'm using Git-1.6.5.1-preview20091022.exe.

I've cloned a SubVersion repository using:

git svn clone -s https://xxxxx:8443/svn/project/SubProjectA

The SubProjectA has the standard layout (trunk, branches, tags). SubProjectA is a copy of another project. It has only 60 revisions if it own. After the command, a folder is created with the name SubProjectA and has only remotes/trunk as the branch. Even the master branch does not exists.

I then have to run

git svn fetch

multiple times to get all revisions from the SubVersion. Every time the fetch command is ran, it fetches only one revision at a time.

I've tried:

git svn fetch -r2400:HEAD
git svn fetch -r2400:2450

without success (SubProjectA is copied at revision 2390, there are one branch of SubProjectA created at revision 2420, the latest revision is 2450).

What did I do that caused the fetch command to fetch only one revision at a time? How do I tell fetch to get all revisions?

like image 285
tvbusy Avatar asked Oct 17 '25 05:10

tvbusy


1 Answers

To do a full update, use

git svn rebase

You should read this article about working using svn-git.

like image 135
Donny Kurnia Avatar answered Oct 18 '25 22:10

Donny Kurnia