nirvdrum / svn2git

Ruby tool for importing existing svn projects into git.
MIT License
2.11k stars 443 forks source link

command failed: git checkout -f master #194

Open strider72 opened 9 years ago

strider72 commented 9 years ago

When i run the command, it creates an empty Git repository, and then I get: command failed: git checkout -f master

It may be pertinent that the SVN repository is a local file, not over http. Also, it's a repository that handles a bunch of projects in subdirectories The command I tried was: svn2git file://localhost/Users/path/to/repo/nested_project --no-minimize-url --trunk dev --tags rel --nobranches

Any idea where this is going wrong?

adyach commented 9 years ago

Same issue

nirvdrum commented 9 years ago

Is git-svn able to process the repository? svn2git is a wrapper around git-svn. If there are problems at that level, unfortunately there isn't much we can do.

Josh1billion commented 9 years ago

I had the same issue and resolved it with by trying different command-line flags until it worked. For example, mine needed --notags --nobranches --rootistrunk, as it was a very old project that wasn't separated into a trunk and branches.