Skip to content

Set GIT_EOWNER when safe.directory is not configured#6427

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

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

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.

3 participants