Skip to content

Set GIT_EOWNER when safe.directory is not configured - #6427

Closed
ehuss wants to merge 1 commit into
libgit2:mainfrom
ehuss:eowner-not-found
Closed

Set GIT_EOWNER when safe.directory is not configured#6427
ehuss wants to merge 1 commit into
libgit2:mainfrom
ehuss:eowner-not-found

Conversation

@ehuss

@ehuss ehuss commented Nov 12, 2022

Copy link
Copy Markdown
Contributor

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

kcsaul commented Nov 16, 2022

Copy link
Copy Markdown
Contributor

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

@ehuss

ehuss commented Nov 16, 2022

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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.

3 participants