Skip to content

Commit 5d3622d

Browse files
Merge pull request #56419 from software-mansion-labs/docs/submodule-config
Add info about `submodule.recurse` option to `README.md`
2 parents c89079c + f8f0e9b commit 5d3622d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

+9
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,15 @@ The primary difference is that the native code, which runs React Native, is loca
532532
533533
The `Mobile-Expensify` directory is a **Git submodule**. This means it points to a specific commit on the `Mobile-Expensify` repository.
534534
535+
If you'd like to fetch the submodule while executing the `git pull` command in `Expensify/App` instead of updating it manually you can run this command in the root of the project:
536+
537+
```
538+
git config submodule.recurse true
539+
```
540+
541+
> [!WARNING]
542+
> Please, remember that the submodule will get updated automatically only after executing the `git pull` command - if you switch between branches it is still recommended to execute `git submodule update` to make sure you're working on a compatible submodule version!
543+
535544
If you'd like to download the most recent changes from the `main` branch, please use the following command:
536545
```bash
537546
git submodule update --remote

0 commit comments

Comments
 (0)