Skip to content

Be more consistent with git clone environment#4918

Open
LecrisUT wants to merge 2 commits into
teemtee:environment-no-inheritance-from-environfrom
LecrisUT:chore/consinstent-ask-pass
Open

Be more consistent with git clone environment#4918
LecrisUT wants to merge 2 commits into
teemtee:environment-no-inheritance-from-environfrom
LecrisUT:chore/consinstent-ask-pass

Conversation

@LecrisUT
Copy link
Copy Markdown
Member

Looks weird that we use the GIT_ASKPASS only in some places and not other, let's be consistent

LecrisUT added 2 commits May 21, 2026 16:33
Signed-off-by: Cristian Le <git@lecris.dev>
Signed-off-by: Cristian Le <git@lecris.dev>
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request centralizes the GIT_ASKPASS environment variable configuration within the git_clone utility, removing redundant setup logic from its callers. Feedback suggests retaining the environment parameter in git_clone to maintain API flexibility for custom variables. Additionally, the reviewer recommends including GIT_TERMINAL_PROMPT=0 for consistency and utilizing the update() method for more efficient environment initialization.

Comment thread tmt/utils/git.py
Comment thread tmt/utils/git.py
@LecrisUT LecrisUT added the ci | full test Pull request is ready for the full test execution label May 21, 2026
@github-project-automation github-project-automation Bot moved this to backlog in planning May 27, 2026
@LecrisUT LecrisUT moved this from backlog to review in planning May 27, 2026
@LecrisUT LecrisUT added the area | maintenance Changes important for efficiency and the long-term health of the project label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area | maintenance Changes important for efficiency and the long-term health of the project ci | full test Pull request is ready for the full test execution

Projects

Status: review

Development

Successfully merging this pull request may close these issues.

1 participant