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

  • SEARCH
  • Home
  • 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 3761474
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:37:54+00:00 2026-05-19T10:37:54+00:00

Where I work, we use a slightly unconventional svn repo layout for projects. It

  • 0

Where I work, we use a slightly unconventional svn repo layout for projects. It looks like this:

project/
  branches/
  tags/
  trunk/
  utils/

We’re a pretty small company, and most of our projects are relatively small. Each developer working on a project usually has a checkout of the whole repo, and there are some post-commit hooks that prevent changes being made to multiple branches at once. The utils folder contains some scripts that are useful for each project, including things like automating HOSTS and apache vhost directive creation for a developers local machine when the repo is first pulled, a few svn shortcuts, and some project-specific stuff.

This layout works pretty well for us.

Now, I’d like to use git-svn, but I’m having trouble figuring out how the addition of that utils folder that is accessible to a developer regardless of what branch they’re working on would translate into git.

The only possible way to deal with this that I’ve been able to figure out would be to git svn clone the whole repo, and then set up some aliases for git svn fetch --ignore-paths so that if I’m working on a specific branch, I wouldn’t be fetching changes from other branches, and then create local topic branches for each remote branch.

The downside of doing this is mostly having to set up those aliases — it’s a somewhat ugly solution, in my opinion — but it seems like it should work at least. As for using the branch detection/integration capabilities of git-svn, I don’t think that it could work here because checking out a branch is “destructive”, and that utils folder exists at the top level of the repo.

So, is there either a better way of restricting git-svn stuff to the directory that represents the current branch, or a cleaner way of handling this scenario in general?

  • 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-05-19T10:37:54+00:00Added an answer on May 19, 2026 at 10:37 am

    I don’t have an answer for the main part of your question, but I might have one for your ‘having to set up aliases with –ignore-paths’ problem.

    Where I work, instead of doing a git svn clone and getting everything, we do the following:

    git svn init <Svn repo url> -T trunk -b branches --ignore-paths '(ignore1|ignore2)'
    

    then we fetch from a reasonable point in the history:

    git svn fetch -r 12345:HEAD
    

    That way we get a shallow, narrow clone of the svn repository.

    Then in the future we just need to do:

    git svn fetch
    

    to update the git svn repo before doing git rebase and git svn dcommit to push back up to the svn repo.

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

Sidebar

Related Questions

My day to day work flow is something like this: acquire raw data (~50GB)
I've created an Air app for use in work. To make things slightly easier,
I've set up a project to use TeamCity and Git, and I'd like to
Slightly related question to this one and this one . Basically, I would like
I use git for a slightly unusual purpose--it stores my text as I write
I'm an Ubuntu Linux user and I use Win XP only for my work
my robotics lab is looking for programmers to work on some projects we have
I'm getting slightly different display of a website depending on which URL I use
I would like to use Sinatra's Streaming capability introduced in 1.3 coupled with some
I'm considering migrating from Subversion to Git at work, and would like to get

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.