Re: Add repos but not as normal files, not submodule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> In other words, if bar is itself a git repository with a valid HEAD,
> then ‘git add bar’ will register it in the index as a submodule.

That was the behavior I was seeing...

> If you can rely on build systems to have git installed, I’d suggest
> writing a simple script to build the test repository from scratch.

Yup - will probably go down this route.

> You can also try using repositories not named .git if you are careful.
> I don’t really encourage this.

Didn't realize this was possible. Any pointers? Links?

>> 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.
> 
> Yes, makes sense to me.
> 
> Hope that helps,
> Jonathan


Cheers for the deep dig! I started looking around the C code, but was following the wrong trail (verify_path) - I like your demo - very nice.

I suppose this problem only stems from them wanting git add to "nicely" automatically recognize .git sub dirs as submodules, thinking no one would ever in their right mind actually want to *track* a sub .git dir ;)

Cheers!--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]