Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S scap3-dev
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Custom issue tracker
    • Custom issue tracker
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • repos
  • relengreleng
  • scap3-dev
  • Merge requests
  • !12

Disable git safe.directory in deployment image

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Hashar requested to merge disable-git-safe-directory into master Jan 30, 2023
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

I could not provision the environment due to:

== Installing/updating scap == ERROR: Specified source path "/srv/services/scap" does not seem to be a scap repository. Aborting bash: scap: command not found

The issue arises cause running as scap-deploy, git is unable to read the config of the repositories under /srv/services. They are owned by root and git recently learned to stop processing config files when their owner mismatch the invoking user.

Add safe.directory = '*' to the global git configuration, to disable the check entirely.

Bug: T325128

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: disable-git-safe-directory