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

absorb does't take includeIf gitconfig into account #112

Open
skoch13 opened this issue Apr 15, 2024 · 4 comments
Open

absorb does't take includeIf gitconfig into account #112

skoch13 opened this issue Apr 15, 2024 · 4 comments
Labels
upstream Blocked on upstream libgit2/git2rs

Comments

@skoch13
Copy link

skoch13 commented Apr 15, 2024

I have a respective includeIf directive in my gitconfig which changes user (name, email) for repos in the configured directory. While executing git config user.email returns the proper result, absorb tries to use the default global user (and asks to force the commit creation as it's being unable to find my commits).

@tummychow
Copy link
Owner

this is almost certainly some kind of upstream issue. do you have a complete gitconfig example you can share that reproduces?

@skoch13
Copy link
Author

skoch13 commented Apr 15, 2024

Sure,

[user]
 name = Sergey Kochetkov
 email = skoch13@***
 login = skoch13
[includeIf "hasconfig:remote.*.url:*://%URI%/**"]
  path = .gitconfig-override
#.gitconfig-override
[user]
 email = [email protected]

1 - default git user
2 - user override

Screenshot 2024-04-15 at 16 24 18

@tummychow
Copy link
Owner

yup: libgit2/libgit2#6641

you might be better served putting those overrides in the repository-level git config if it's important

@tummychow tummychow added the upstream Blocked on upstream libgit2/git2rs label Apr 15, 2024
@skoch13
Copy link
Author

skoch13 commented Apr 15, 2024

that's a bummer. thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Blocked on upstream libgit2/git2rs
Projects
None yet
Development

No branches or pull requests

2 participants