try to restore git permissions

It would appear that invent mangles files permissions so that we end up
with world writable files. Instead try to hold on to git. This may
ultimately cause trouble with docker but we'll have to try to know.

Relates to #27
This commit is contained in:
Harald Sitter
2024-10-15 06:42:19 +02:00
parent 54b30f4468
commit 27055ff0d9

View File

@@ -9,6 +9,9 @@ start:
allow_failure: false
image: archlinux:latest
script:
# invent.kde.org seems to mangle permissions, restore them so we have accurate permissions for configs and whatnot
# https://stackoverflow.com/questions/2517339/how-to-restore-the-permissions-of-files-and-directories-within-git-if-they-have
- git diff -p -R --no-ext-diff --no-color --diff-filter=M | grep -E "^(diff|(old|new) mode)" --color=never | git apply
- ls -lahR
- pacman --sync --refresh --noconfirm curl which
- curl -s https://gitlab.com/gitlab-org/incubation-engineering/mobile-devops/download-secure-files/-/raw/main/installer | bash