Skip to content
Snippets Groups Projects

install_pmbootstrap: make pmaports/.git world writeable by all

Merged Clayton Craft requested to merge craftyguy/fix-pmaports-perms into master

Works around an issue in the CI after the migration where some dirs are created that are owned by root and not writeable by any other groups/ users.

One way the CI failed from this is .git/refs/remotes was only writeable by root, since root ran git remote add on the freshly cloned repo causing the remotes dir to be created. Later in CI, when other users tried to add remotes, these failed silently (thanks git) and the CI job crashed when it tried to run git fetch on the remote that was never added. At this point in the script, refs/remotes exists so this chmod "fixes" the issue.

I don't have any idea why this is a problem now and not when we were on gitlab.com.

Merge request reports

Merge request pipeline #208222 passed

Merge request pipeline passed for 6beb94d4

Merged by Clayton CraftClayton Craft 5 months ago (Oct 11, 2024 5:38am UTC)

Loading

Pipeline #208223 passed

Pipeline passed for 6beb94d4 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading