Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8762299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T15:29:35+00:00 2026-06-13T15:29:35+00:00

Today, at my work we host our source code at a public svn repository

  • 0

Today, at my work we host our source code at a public svn repository that we don’t admin access. Now, we want to use git (github) to host our source. For some internal reasons, the svn repository we use must mirror the git one.

Apparently, Subgit is the best tool to do this work, because the svn <-> git is very smooth and stress-free (what it really seems to be according to my tests). So, the layout I’ve been thing is this one:

svn-repo <- subgit-repo <- github <-> local git-repo from each developer.

The svn-repo will be read-only, i.e., it’ll be only possible to commit using git.

Reading the Subgit blog I saw this post. In this post, the svnsync is used to synchronize the subgit-repo with the svn-repo, but the synchronization is one-way only, from svn-repo to subgit-repo 🙁

So, I’ve discovered svnadmin dump and load and I can use them to keep svn-repo synchronized with the subgit-repo. For example:

svnadmin dump –incremental subgit-repo | svnadmin load svn-repo

My question is: Is it a good idea to use svnadmin dump and load to keep my repositories synchronized?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T15:29:36+00:00Added an answer on June 13, 2026 at 3:29 pm

    Let’s split the problem as follows:

    • Remote synchronization of Subversion repositories;
    • Synchronization of Git repositories, when one of them is hosted on GitHub.

    Remote synchronization of Subversion repositories.

    1. Using svnsync.

      So, I’ve discovered svnadmin dump and load and I can use them to keep svn-repo synchronized with the subgit-repo.

      svnadmin dump –incremental subgit-repo | svnadmin load svn-repo

      Unfortunately you cannot run svnadmin load svn-repo unless you have admin access to svn-repo. But you can try to use svnsync instead:

      $ svnsync init svn-repo subgit-svn-repo
      $ svnsync sync svn-repo
      

      This way you sync changes from subgit-svn-repo to svn-repo remotely. Please notice that in your question you’ve pointed out the way to sync from svn-repo to subgit-svn-repo, but in my example I’ve shown this works in opposite direction as well.

      There’s one issue with that approach though: there should be a pre-revprop-change hook in svn-repo. That means you still have to access svn-repo locally to enable the hook. Fortunately, that’s a common case when administrators enable such hooks. Hope that holds for you, too.

      You may find the detailed HOW-TO in this blog post.

    2. Using SubGit 2.0.

      Right now we have a working prototype of SubGit 2.0 that enables read-write mirror of Subversion and Git repositories located on different hosts. One has to have admin access to Git repository only, so no need to modify Subversion repository anyhow.

      Currently it works like this:

      $ git init --bare git-repo
      $ subgit configure --svn-url svn-repo git-repo
      $ subgit install git-repo
      

      At this moment SubGit installs pre-receive and post-receive hooks into git-repo that automatically synchronize incoming changes with remote svn-repo.

      We’re very close to publishing the very first EAP build with this functionality. And we encourage you to test the build as soon as it is ready. Until that moment there’s only svnsync option, as far as I know.

    Git synchronization with GitHub

    From your question it’s still no clear how are you going to synchronize changes of subgit-git-repo with github-repo.

    I’d like to notice that one has to push changes into subgit-git-repo in order to synchronize them with subgit-svn-repo.

    Basically your team may work with github repository only, and someone will manually push all the changes to SubGit-controlled Git repository:

    $ git remote add github github-repo
    $ git remote add subgit subgit-git-repo
    $ git pull github
    $ git push subgit
    

    Or one can setup a cron job to periodically push changes to SubGit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into some Java code at work today : public interface A {
Today at work, I was given a task to fix a bug within our
Today at work someone tried to convince me that: {$obj->getTableInfo()} is fine for smarty/mvc/templating
I came across some javascript at work today that used jQuery to fetch two
I work in an asp.net shop, and I heard today that the bottleneck on
I ran into a problem today at work wherein I have a BindingGroup that
Something I encountered today at work, I tried to make a view that used
While working on relatively straightforward C code at work today, I began day-dreaming a
Today at work we came across the following code (some of you might recognize
I have a new laptop at work and code that worked earlier in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.