From 97b4d57c39e1255f24cb9f9d90c46b1d1e0ad590 Mon Sep 17 00:00:00 2001 From: Ben Davis Date: Mon, 9 Mar 2026 13:31:23 -0700 Subject: [PATCH] Updated to ensure that the user isn't prompted for username and password when trying to check a git repo's remote refernces if they don't have access --- src/fastsandpm/_git_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fastsandpm/_git_utils.py b/src/fastsandpm/_git_utils.py index 6aee09e..dfb7883 100644 --- a/src/fastsandpm/_git_utils.py +++ b/src/fastsandpm/_git_utils.py @@ -370,6 +370,7 @@ def get_remote_refs(remote: str) -> dict[str, tuple[frozenset[str], frozenset[st ["git", "ls-remote", remote], stderr=subprocess.STDOUT, stdout=subprocess.PIPE, + env={"GIT_TERMINAL_PROMPT": "0", "GIT_ASKPASS": "0", **dict(os.environ)}, ) if proc.returncode != 0: