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

init git config failure -> warn #392

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

phanirithvij
Copy link
Contributor

closes #391

@fraggerfox
Copy link
Contributor

I can confirm the patch works and opengist does spew out the warning (instead of stopping immediately), when I am running it without any containers

{"level":"info","caller":"github.com/thomiceli/opengist/internal/cli/main.go:96","time":"2024-11-27T02:10:52+05:30","message":"Data directory: /usr/local/www/opengist"}
{"level":"warn","caller":"github.com/thomiceli/opengist/internal/cli/main.go:99","time":"2024-11-27T02:10:52+05:30","message":"Git config modification failed, ensure /usr/local/www/opengist is added to git safe directories, and receive.advertisePushOptions is set to true."}

@thomiceli
Copy link
Owner

Thanks for the PR. Took the liberty to change the message. LMK

@phanirithvij
Copy link
Contributor Author

LGTM

@thomiceli thomiceli merged commit 64306be into thomiceli:master Nov 26, 2024
10 checks passed
@phanirithvij phanirithvij deleted the gitconfig-warn branch November 26, 2024 21:29
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.

init git config with readonly gitconfig
3 participants