Coming soon - Get a detailed view of why an account is flagged as spam!
view details
1
Is it possible to share a submodule locally?
Post Flair (click to view more posts with a particular flair)
Post Body

The projects I work on use the same submodules as common libraries, so my local folders look like this:

├───Project1
│   ├───Library ABC (Submodule)
│   ├───Library XYZ (Submodule)
├───Project2
│   ├───Library ABC (Submodule)
│   ├───Library XYZ (Submodule)
├───Project3
│   ├───Library ABC (Submodule)
│   ├───Library XYZ (Submodule)
├───Library ABC
├───Library XYZ

Since I also maintain those libraries, I have those repos checked out locally, and I end up with multiple copies of the same folders.

Is there a way to configure the projects to use the copy of the repo that's in the main directory, rather than the subdirectory it creates? Preferably without impacting the repo itself, since I don't want to force the change onto the other developers.

Author
Account Strength
100%
Account Age
13 years
Verified Email
Yes
Verified Flair
No
Total Karma
14,241
Link Karma
913
Comment Karma
13,273
Profile updated: 9 hours ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago