Skip to content

Use environ before config to lookup git user #3819

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

131
Copy link

@131 131 commented Apr 16, 2025

This PR updates the logic for retrieving the Git user's name and email in aider/main.py:

  • Environment variables GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL are now prioritized over the Git config.
  • This improves compatibility in environments where Git configuration may not be available or reliable (e.g., CI, containers, etc.).

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.

2 participants