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

Set GIT_EOWNER when safe.directory is not configured #6427

Closed
wants to merge 1 commit into from

Conversation

ehuss
Copy link
Contributor

@ehuss ehuss commented Nov 12, 2022

When there is an ownership violation, and safe.directory is not configured, libgit2 will return a somewhat confusing GIT_ENOTFOUND message with config value 'safe.directory' was not found. I'm not sure if this was intentional, but I think it is helpful to instead return GIT_EOWNER to indicate the actual underlying error.

@kcsaul
Copy link
Contributor

kcsaul commented Nov 16, 2022

@ehuss Looks like a fix for the same issue I've submitted #6408 for, which is still pending review.

@ehuss
Copy link
Contributor Author

ehuss commented Nov 16, 2022

Oh my, thanks for the heads up! I searched the issue tracker, but I often forget to also search open PRs. I'll go ahead and close.

@ehuss ehuss closed this Nov 16, 2022
@ethomson
Copy link
Member

Sorry, that's my bad. I've been both busy at home and heads down on work for the past few weeks. I'll 👀 this 🔜. Many apologies for the delay.

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.

None yet

3 participants