Skip to content

goavki/git-svn-sync

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-svn-sync

git-svn-sync is a Simple HTTP server that can receive GitHub push hooks. It will update repositories automatically reflecting changes locally.

Running

To run git-svn-sync do:

python3 main.py

Settings will be taken from config.py. Check config.py for more information about settings. By default git-svn-sync runs on port 8808.

Now that we have the server running we need to tunnel it out. Use ngrok for this.

./ngrok http 8808

Replace 8808 with the port you set.

Now you will see a external URL for the server you have running locally. Open GitHub and add a push hook for this URL to the repositories as required.

Testing repository for convenience: FakeRepoLulz. Has convenience script 'fake-commit.sh' for making fake commits for testing hook. Please fork and add the ngrok URL you got on running ngrok http 8808 and test it out.

Troubleshooting

If you get lock errors, please cd into the clone directory and then svn unlock all files. Then gain lock access for yourself. By default git-svn-sync tries to get lock access but in case it fails, this has to be done manually.

About

Synchronize svn remote repos with github repos

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%