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 223653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:14:30+00:00 2026-05-11T19:14:30+00:00

I have a project in SVN which has a plugins folder. Several of the

  • 0

I have a project in SVN which has a plugins folder. Several of the plugins folders are git repositories — I added them to my plugins folder using git clone.

This has been working well for me but now I’m looking to migrate my SVN repository to git using git-svn:

git svn init http://path/to/my/repo --no-metadata 
git config svn.authorsfile ~/authors.txt
git svn fetch

This works fine for all my early revisions which didn’t have the git repos in my plugins folder, but when it hits the first revision containing a git repository it fails with the following error:

trunk/plugins/my_plugin/.git/HEAD was not found in commit 
ae9ad0ab7cebd144c823d90d43cdab2b30d13f9e (r2259)

Is there a way around this to allow me to fully import my repository, perhaps by excluding any .git folders which reside in the SVN repository?

  • 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-11T19:14:30+00:00Added an answer on May 11, 2026 at 7:14 pm

    It turns out that I was using git-svn 1.5 on Ubuntu which didn’t support the --ignore-paths flag on git-svn fetch. After building git 1.6 from source I can now run:

    git svn fetch --ignore-paths='\.git'
    

    The fetch now ignores all .git folders and successfully imports all the SVN history to my new git repository.

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

Sidebar

Related Questions

We have an svn project that also has several plugins in vendor/plugins - all
We have a C++ project, which has hundreds of SVN revisions every month. Sometimes
I have have a main project I am working on, which has several modules/directories.
I have a GWT project which has its source managed in SVN, is packaged
We have a main visual studio project stored in SVN using the standard trunk/branches/tags
I have a large project but I need only some folders in my svn
I am playing with Weld-SE. I have a project which has pluggable modules. With
Suppose I have a project MyFramework that has some code, which is used across
I have a personal project which is stored in an svn repository in my
I have a project with several dependencies that are in various repositories. Each time

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.