1

Supposed I have an umbrella SVN repo, "CompanyName". Within this repo, there are many projects, "Project1", "Project2", ..., "ProjectN". E.g. the SVN repo houses multiple projects instead of a single repo per project. I want to "move" Project1 to Git, so I tried to do this:

git svn clone --no-metadata --authors-file=users.txt --prefix=origin/ --trunk=Trunk --branches=Branches svn+ssh://[email protected]/svn/CompanyName/Internal/Project1/

To which, git-svn responds:

Initialized empty Git repository in c:/Projects/CompanyName/Internal/Project1/.git/
Using higher level of URL: svn+ssh://[email protected]/svn/CompanyName/Internal/Project1 => svn+ssh://[email protected]/svn/CompanyName

Note that git has correctly moved up to the root of the repository, although I want it to focus on the path I specified. Moving into Project1, running git branch -r gives me no output, so this did not appear to work.

2 Answers 2

1

This was resolved by using the --no-minimize-url option to git svn:

git svn clone --no-metadata --authors-file=users.txt --prefix=origin/ --trunk=Trunk --branches=Branches --no-minimize-url svn+ssh://[email protected]/svn/CompanyName/Internal/Project1/
Sign up to request clarification or add additional context in comments.

Comments

0

I was getting similar error. I resolved it by using --no-minimize-url

This is my full URL , the -r specifies from which version I want to take and after that I did git snv rebase

git svn clone -r 15846 svnurl -T trunk -A ../authors.txt gitreponame --no-minimize-url

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.