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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T03:21:51+00:00 2026-06-18T03:21:51+00:00

I am working on developing a little piece of software that works with git

  • 0

I am working on developing a little piece of software that works with git repositories, and I would like to be able to write some tests. In order to do so, I created a test-repo folder inside my project that itself is a git repository. In my tests I reference that repository to ensure that the commands I run against a repository in precisely known state.

My question is: Can I version that nested repo as part of the main repo of the project? Please note this is not really the same problem that submodules solve: The nested repo is really part of the enclosing project, not an externally referenced piece of software.

  • 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-18T03:21:52+00:00Added an answer on June 18, 2026 at 3:21 am

    I think the problem is that git detects its own .git files and doesn’t allow to work with them. If you however rename your test repo’s .git folder to something different, e.g. _git it will work. Only one thing you need to do is to use GIT_DIR variable or --git-dir command line argument in your tests to specify the folder.

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

Sidebar

Related Questions

I am a newbie working towards developing an IE extension that would appear as
I'm working on developing an application that talks to a family of USB sensors.
I'm currently working on developing a custom keyboard app that will be optimized for
I'm designing (and developing) web software that will allow the general public to sign
I'm working at a company that uses SCCS internally for developing it's main application.
I am working on a little test app to scrape some data (in this
Working on developing a web application, and there needs to be some graceful fallback
I have been working on developing an app for iOS for a little while
I've begun working with android, so I'm developing a little game (mostly for learning
I've hit a little road block with a timeline I am working on developing

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.