Error >> "command failed: git checkout -f master" While trying to convert SVN repo to a GIT repo

Am trying to convert an old SVN repository into a git repository but am getting this error below https://pastebin.com/Z2FJ6SxX.

am running this command here

svn2git http://svn.openmrs.org/repo/openmrs-modules/growthchart --authors D:/openMrs/code/tickets/Gowthchart-SVN2GIT/authors.txt

and i was following https://wiki.openmrs.org/display/docs/Migrating+to+Git

cc @dkayiwa @mksd @k.joseph

ive tried out several tags as advised here https://github.com/nirvdrum/svn2git ,but i still get the same error.

Issue is this repo http://svn.openmrs.org/repo/openmrs-modules/growthchart/ is not in the standard layout

Do not be alarmed at the above message git-svn is just searching aggressively for old history.

:smile: so what does that imply @dkayiwa :thinking:

Like should i just wait ?? because the script stops after that errror and yet i cant see the converted repo, only a .git folder is created

hi @dkayiwa, i ddint exactly get your point , what was your suggestion.

  • @dkayiwa since svn2git is just a wrap up tool around git’s svn-git , i directly used svn-git which comes pre-installed with git and it worked fine.

  • The github Importer is also a great and easy to use tool for convertion and migration from svn to git

Can you update our documentation with this alternative?

1 Like

yes i updated it