Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
cbecf724
by André Apitzsch at 2023-01-07T12:33:58+00:00
1 changed file:
Changes:
| ... | ... | @@ -134,10 +134,14 @@ deploy-flatpak: |
| 134 | 134 | - eval $(ssh-agent -s)
|
| 135 | 135 | - .ci/prepare_git.sh github.com "${FLATHUB_DEPLOY_KEY}"
|
| 136 | 136 | script:
|
| 137 | + # extract the current commit hash of the shared-modules submodule
|
|
| 138 | + - submodule_commit=$(git submodule status flatpak/shared-modules | cut -c 2-41)
|
|
| 137 | 139 | - git clone git@github.com:flathub/org.gajim.Gajim.git
|
| 138 | 140 | - cd org.gajim.Gajim
|
| 139 | 141 | - mv ../flatpak/org.gajim.Gajim.yaml org.gajim.Gajim.yaml
|
| 140 | 142 | - mv ../flatpak/app-overrides.json app-overrides.json
|
| 143 | + # point the shared-modules submodule to the new commit, without fetching the repository
|
|
| 144 | + - git update-index --cacheinfo 160000,${submodule_commit},shared-modules
|
|
| 141 | 145 | - git diff
|
| 142 | 146 | - git add --all
|
| 143 | 147 | - git commit -m "$CI_COMMIT_TAG"
|