Skip to content

Commit 84299a2

Browse files
phil-blainben
andauthored
Submodules: fix grammar as suggested by Ben
See progit/progit2#1368 (comment) Co-Authored-By: Ben Straub <[email protected]>
1 parent 5b2b107 commit 84299a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ This will make Git run `git submodule update` right after the pull, putting the
437437
Moreover, if you want to make Git always pull with `--recurse-submodules`, you can set the configuration option `submodule.recurse` to true (this works for `git pull` since Git 2.15).
438438
This option will make Git use the `--recurse-submodules` flag for all commands that support it (except `clone`).
439439

440-
There is a special situation that can happen when pulling superproject updates : maybe the upstream repository changes the URL of the submodule in the `.gitmodules` file in one of the commits you pull.
440+
There is a special situation that can happen when pulling superproject updates: it could be that the upstream repository has changed the URL of the submodule in the `.gitmodules` file in one of the commits you pull.
441441
This can happen for example if the submodule project changes its hosting platform.
442442
In that case, it is possible for `git pull --recurse-submodules`, or `git submodule update`, to fail if the superproject references a submodule commit that is not found in the submodule remote locally configured in your repository.
443443
In order to remedy this situation, the `git submodule sync` command is required:

0 commit comments

Comments
 (0)