views:

24

answers:

0

I have migrated a CVS repository through svn to git, and the resulting repository as generated by svn2git (the one recommended here) has all my old CVS branches available so I can just "git checkout SV46" to get my SV46 branch and then switch to SV48 afterwards. Very nice.

I have a gitosis repository set up on a machine named "sandbox", and uploaded the svn2git repository to it with

git remote add origin gitosis@sandbox:git00
git push origin --all

and I can see my branches with "git branch" if placed in the git00.git folder on sandbox.

Now, when I clone my gitosis repository with

git clone gitosis@sandbox:git00

I only see the master branch. Experiments show that I can get the SV46 branch when cloning

 git clone gitosis@sandbox:git00 -b SV46

and I may be able to switch repositories but git complains that I have local changes to files (perhaps a NTFS issue).

What is the correct way to check out the equivalent to CVS HEAD in my scenario?