Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: uncomment Copy .gitconfig line #196

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mckadesorensen
Copy link
Contributor

I did not mean to comment this out. On that note, it does make our CI/CD pipeline fail. Is any other DAAC having an issue with it and their CI/CID pipeline?

@lindsleycj
Copy link
Collaborator

@mckadesorensen Are you saying that with it uncommented your CI/CD pipeline fails?

The reason I added it was to avoid these errors:

fatal: detected dubious ownership in repository at '/CIRRUS-core'
To add an exception for this directory, call:

        git config --global --add safe.directory /CIRRUS-core
fatal: detected dubious ownership in repository at '/CIRRUS-core'
To add an exception for this directory, call:

        git config --global --add safe.directory /CIRRUS-core
fatal: detected dubious ownership in repository at '/CIRRUS-DAAC'
To add an exception for this directory, call:

        git config --global --add safe.directory /CIRRUS-DAAC
fatal: detected dubious ownership in repository at '/CIRRUS-DAAC'
To add an exception for this directory, call:

        git config --global --add safe.directory /CIRRUS-DAAC

I tried putting these commands in the Dockerfile in various places but they never resulted in a .gitconfig file being created at the / level:

RUN \
        git config --global --add safe.directory /CIRRUS-core && \
        git config --global --add safe.directory /CIRRUS-DAAC

The dubious errors don't actually prevent the step from running, I just got tired of seeing them. So, I'm fine with removing that line completely if it is causing other people problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants