Skip to content

Commit

Permalink
Merge pull request #56419 from software-mansion-labs/docs/submodule-c…
Browse files Browse the repository at this point in the history
…onfig

Add info about `submodule.recurse` option to `README.md`

(cherry picked from commit 5d3622d)

(CP triggered by roryabraham)
  • Loading branch information
MarioExpensify authored and OSBotify committed Feb 6, 2025
1 parent 9a36e17 commit 45db478
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,15 @@ The primary difference is that the native code, which runs React Native, is loca
The `Mobile-Expensify` directory is a **Git submodule**. This means it points to a specific commit on the `Mobile-Expensify` repository.
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:

```
git config submodule.recurse true
```

> [!WARNING]
> 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!

If you'd like to download the most recent changes from the `main` branch, please use the following command:
```bash
git submodule update --remote
Expand Down

0 comments on commit 45db478

Please sign in to comment.