dhirajkk91 commented on code in PR #75917:
URL: https://github.com/apache/airflow/pull/75917#discussion_r4486358852
##########
providers/git/src/airflow/providers/git/hooks/git.py:
##########
@@ -332,18 +334,24 @@ def _token_credential_env(self) -> Generator[None]:
# `credential.helper` would otherwise answer `get` first and our
token would never
# be used. git also invokes every helper on `approve`, so a
`store` helper would
# persist it to ~/.git-credentials. Reset the scope to empty first
(git help credentials).
+ config = [
+ (f"credential.{scope}.helper", ""),
+ # git runs the value through a shell. The ! marks it as a
command and preserves quoting.
Review Comment:
Updated this to accept boolean strings, including case-insensitive and
whitespace-padded values, and reject invalid values with ValueError. I added
the UI placeholder and constructor-level tests.
I also removed the changelog warning and restored the original comment
explaining why spaces in the temporary helper path require quoting.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]