Browse Source

readme: git submodule

mattias 3 years ago
parent
commit
f31f5ea669
1 changed files with 7 additions and 5 deletions
  1. 7 5
      README.md

+ 7 - 5
README.md

@@ -46,18 +46,20 @@ When you do a `git clone`, make sure you also specify the `--recurse-submodules`
 ```sh
 git clone --recurse-submodules https://gitlab.com/freepascal.org/fpc/pas2js.git
 ```
-If you didn't do this, issue the init and update commands:
+
+Or for the fixes branch:
 ```sh
-git submodule init
+git clone --recurse-submodules https://gitlab.com/freepascal.org/fpc/pas2js.git --branch fixes_2_2
 ```
-and update:
+If you didn't do this, issue the init and update commands:
 ```sh
-git submodule update
+git submodule update --init --recursive
 ```
 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
+git pull
 git submodule update --init --recursive
 ```
 This will pull any upstream changes to the FPC repository.