Skip to content

Commit 4320683

Browse files
committed
[CI] Fix submodule update
The subproject tests were not pulling the latest remote `main` of dependencies, but instead using the last stored git hash for `main` in the local git object database. Adding `--remote` causes `main` to be looked up in the remote, rather than local database. See https://git-scm.com/docs/git-submodule#Documentation/git-submodule.txt---remote Signed-off-by: David Feltell <[email protected]>
1 parent 861e193 commit 4320683

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
path: ./openassetio-mediacreation-build
8282

8383
- name: "Get Submodules"
84-
run: git submodule update --init --recursive OpenAssetIO
84+
run: git submodule update --init --recursive --remote OpenAssetIO
8585

8686
- name: Configure CMake build
8787
run: >
@@ -118,7 +118,7 @@ jobs:
118118
python -m pip install git+https://github.com/OpenAssetIO/OpenAssetIO-TraitGen
119119
120120
- name: "Get Submodules"
121-
run: git submodule update --init --recursive OpenAssetIO-MediaCreation
121+
run: git submodule update --init --recursive --remote OpenAssetIO-MediaCreation
122122

123123
- name: Configure CMake build
124124
run: >
@@ -146,7 +146,7 @@ jobs:
146146
python -m pip install git+https://github.com/OpenAssetIO/OpenAssetIO-TraitGen
147147
148148
- name: "Get Submodules"
149-
run: git submodule update --init --recursive
149+
run: git submodule update --init --recursive --remote
150150

151151
- name: Configure CMake build
152152
run: >

0 commit comments

Comments
 (0)