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

Add git config --global --add safe.directory '*' #228

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Conversation

cortinico
Copy link
Member

Since we're moving over to GHA we're seeing failures that require us to specify which are the git safe directory. I'm setting them as * in the global config to override those failures

@cortinico cortinico merged commit d2cc711 into main Jun 19, 2024
2 of 3 checks passed
@cortinico cortinico deleted the nc/git-safe-dir branch June 19, 2024 18:34
cortinico added a commit to cortinico/react-native that referenced this pull request Jul 1, 2024
…s inside Docker

Summary:
Following up to cipolleschi's work, it turns out that me setting this command inside
the docker file for React Android is unneffective:
react-native-community/docker-android#228

The reason is that the user executing is different (1001 for the Dockerfile, while GHA executes as root 1000).
So we need to set this, otherwise the nightlies will be invoked with the `-TEMP` prefix:

Changelog:
[Internal] [Changed] - Setup `git config --global --add safe.directory '*'` when running jobs inside Docker

Differential Revision: D59223862
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Jul 1, 2024
…s inside Docker (#45231)

Summary:
Pull Request resolved: #45231

Following up to cipolleschi's work, it turns out that me setting this command inside
the docker file for React Android is unneffective:
react-native-community/docker-android#228

The reason is that the user executing is different (1001 for the Dockerfile, while GHA executes as root 1000).
So we need to set this, otherwise the nightlies will be invoked with the `-TEMP` prefix:

Changelog:
[Internal] [Changed] - Setup `git config --global --add safe.directory '*'` when running jobs inside Docker

Reviewed By: blakef

Differential Revision: D59223862

fbshipit-source-id: 26674fc8cdaebf6687407072cc4e4f5c38246845
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.

1 participant