readme: git submodule

This commit is contained in:
mattias 2022-02-22 14:32:47 +01:00
parent 6594194aee
commit f31f5ea669

View File

@ -46,18 +46,20 @@ When you do a `git clone`, make sure you also specify the `--recurse-submodules`
```sh ```sh
git clone --recurse-submodules https://gitlab.com/freepascal.org/fpc/pas2js.git git clone --recurse-submodules https://gitlab.com/freepascal.org/fpc/pas2js.git
``` ```
Or for the fixes branch:
```sh
git clone --recurse-submodules https://gitlab.com/freepascal.org/fpc/pas2js.git --branch fixes_2_2
```
If you didn't do this, issue the init and update commands: If you didn't do this, issue the init and update commands:
```sh ```sh
git submodule init git submodule update --init --recursive
```
and update:
```sh
git submodule update
``` ```
This will have the same effect as when you do a --recurse-submodules. This will have the same effect as when you do a --recurse-submodules.
After doing a git pull, you must also update the submodule: After doing a `git pull` or a `git switch`, you must also update the submodule:
```sh ```sh
git pull
git submodule update --init --recursive git submodule update --init --recursive
``` ```
This will pull any upstream changes to the FPC repository. This will pull any upstream changes to the FPC repository.