git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Add repos but not as normal files, not submodule

From
Antony Stubbs <antony.stubbs@gmail.com>
Date
Apr 14, 2010, 04:11 UTC
Message-ID
<BFCA0C1E-FBE0-4CE6-8018-704BC5E0ACA6@gmail.com>
Hi there. 
I have a special situation (maven git scm provider) where I have sub directories with git repps in them which I use as data to run tests on. 
Is it possible to track these "internal" repos without using submodules? 
The only alternative I see is to compress all the test repos in an archive and track that - but that's not nice.

Upon trying to "Add" the internal repos to track, I get error: Invalid path for example: antony-stubbss-macbook-pro-4:buildnumber-maven-plugin antonystubbs$ git add src/test/test-repositories/git/branch-tests-japanese/.git/config error: Invalid path 'src/test/test-repositories/git/branch-tests-japanese/.git/config' error: unable to add src/test/test-repositories/git/branch-tests-japanese/.git/config to index fatal: adding files failed

The reason I don't want to do submodules is that I don't want to have the submodules as serperate projects as such, because they're not. they're "test data" so to speak.

Cheers, Antony.

Next: Jonathan Nieder
Message 1 of 4 in “Add repos but not as normal files, not submodule”
  1. Antony StubbsApr 14, 2010
  2. Jonathan NiederApr 14, 2010
  3. Antony StubbsApr 14, 2010
  4. Jonathan NiederApr 14, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.