-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update(contri): add git submodules setup
Signed-off-by: Daniel Oliveira <[email protected]>
- Loading branch information
Showing
2 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -597,6 +597,37 @@ At least two issue templates must be created: | |
* ``.github/ISSUE_TEMPLATE/feature_request.md``: details an idea/suggestion for | ||
a new feature and analyzes its trade-offs | ||
|
||
Git Submodules Setup | ||
******************** | ||
|
||
The Git submodules feature is used across several repositories. For example, | ||
the CI workflow is typically added as a submodule on other repository | ||
subsystems to enable the CI pipeline. When creating a submodule, a developer | ||
must ensure that the ``.gitmodules`` configuration file (that stores the | ||
mapping between the project’s URL and the local subdirectory) uses the SSH URL. | ||
|
||
To add a submodule using an SSH URL, you can use the ``git submodule add`` | ||
command followed by the SSH URL of the repository you want to add as a | ||
submodule. | ||
|
||
For example: | ||
|
||
.. code-block:: shell | ||
git submodule add ssh://[email protected]/path/to/repo.git | ||
This will add the repository at the specified SSH URL as a submodule to your | ||
current Git repository. Keep in mind that you need to have access to the | ||
repository that you want to add as a submodule and be authenticated with the | ||
appropriate credentials in order to use an SSH URL. | ||
|
||
Final layout of the ``.gitmodules`` configuration file: | ||
|
||
.. code-block:: none | ||
[submodule "ci"] | ||
path = ci | ||
url = [email protected]:bao-project/bao-ci.git | ||
.. TODO: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,3 +62,7 @@ Ymllint | |
Partitioner | ||
partitioner | ||
unreviewed | ||
submodule | ||
submodules | ||
Submodules | ||
subdirectory |