Re: dependable submodules

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

 



Daniel <daniel@xxxxxxxxxxx> writes:

> IOW, I may have
>
>     myrepo/somefile.txt
>     myrepo/another_project/.git/...
>     myrepo/another_project/another_project_file.txt
>
> and I'd like to, when I clone repo, to be able to get all files from
> repo independently of the remote repo's existence.

Cloned repositories from your repository can say where they get from
"another_project" embedded in it in .git/config of the clone of the
superproject. The supermodule may have .gitmodules that points at github
or whereever your original upstream repository resided, but that is
supposed to be used to only give you the default.

When "another_project" you borrowed really dies and becomes useless for
anybody, you may update its entry in .gitmodules of the superproject to
point at the public repository that inherited that submodule project.
The project might be simply abandoned, in which case you end up being
that inheritor.
--
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]