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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:55:23+00:00 2026-06-18T02:55:23+00:00

I am adding a submodule to my project which contains another git repo. To

  • 0

I am adding a submodule to my project which contains another git repo.

To get the module I ran:

git submodule add git://github.com/biakaveron/debug-toolbar.git modules/debug-toolbar

Then ran:

git submodule update --init --recursive

Which generated this error:

fatal: Not a git repository: ../../../../../../..//d/websites/project/.git/modules/modules/debug-toolbar/modules/vendor/firephp
Failed to recurse into submodule path 'modules/debug-toolbar'

I have run into similar problems before. Previously I just added the submodule and then re-cloned the project with the recursive flag (git clone --recursive project.git) which works. However it would be easier if I could get the submodule to pull in recursively in the first place. Is there a way to do this?

  • 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-18T02:55:24+00:00Added an answer on June 18, 2026 at 2:55 am

    One possible cause could be the fact that github.com/cadorn/firephp-libs mentions:

    THIS PROJECT HAS MOVED TO THE FOLLOWING REPOSITORIES:

    https://github.com/firephp/firephp
    https://github.com/firephp/firephp-core
    

    So you might want to update the .gitmodules file of debug-toolbar first (after a git submodule update --init, without the --recursive part), and then, try again the git submodule update --init --recursive)

    The OP did:

    committing, then a recursive clone – which worked.


    Original answer:

    It seems that the path definition for one of the submodules (in the .gitmodules file) is not correct:
    Being a relative path, it won’t resolve successfully when cloned/updated by a git submodule --recursive command done from a parent repo for which said relative path is invalid.

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

Sidebar

Related Questions

I added a submodule: git submodule add git://github.com/chneukirchen/rack.git rack A file .gitmodules was created
How does git submodule add -b work? After adding a submodule with a specific
I want to use some libs in my application, like https://github.com/Panmind/erlang-ruby-marshal . That repo
Im working on a large multi-module project which uses an internal framework as one
I'm trying to add an external repo as a submodule of my repo, so
I'm trying to get a submodule setup properly in git and I want to
I get the following error when I try adding a submodule to my repository:
How would I go about adding a Git submodule for a specific tag or
I would like to change the directory name of a Git submodule in my
adding confirm box Here is my code and I want to add a confirmation

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.