Skip to content

Commit 12f0c8c

Browse files
committed
Merge pull request #307 from Thannoy/master-review/relative-submodules
git supports relative submodules URLs
2 parents a113612 + 1312971 commit 12f0c8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/07-git-tools/sections/submodules.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This lets you clone another repository into your project and keep your commits s
2121

2222
We'll walk through developing a simple project that has been split up into a main project and a few sub-projects.
2323

24-
Let's start by adding an existing Git repository as a submodule of the repository that we're working on. To add a new submodule you use the `git submodule add` command with the URL of the project you would like to start tracking. In this example, we'll add a library called ``DbConnector''.
24+
Let's start by adding an existing Git repository as a submodule of the repository that we're working on. To add a new submodule you use the `git submodule add` command with the absolute or relative URL of the project you would like to start tracking. In this example, we'll add a library called ``DbConnector''.
2525

2626
[source,console]
2727
----
@@ -69,7 +69,7 @@ This is how other people who clone this project know where to get the submodule
6969

7070
[NOTE]
7171
=====
72-
Since the URL in the .gitmodules file is what other people will first try to clone/fetch from, make sure to use a URL that they can access if possible. For example, if you use a different URL to push to than others would to pull from, use the one that others have access to. You can overwrite this value locally with `git config submodule.DbConnector.url PRIVATE_URL` for your own use.
72+
Since the URL in the .gitmodules file is what other people will first try to clone/fetch from, make sure to use a URL that they can access if possible. For example, if you use a different URL to push to than others would to pull from, use the one that others have access to. You can overwrite this value locally with `git config submodule.DbConnector.url PRIVATE_URL` for your own use. When applicable, a relative URL can be helpful.
7373
=====
7474

7575
The other listing in the `git status` output is the project folder entry.

0 commit comments

Comments
 (0)