git: Pass project environment to git binary invocations (#26301)

Closes #26213 

Release Notes:

- Git Beta: pass down environment variables from project to git
operations
This commit is contained in:
Cole Miller 2025-03-10 12:12:46 -04:00 committed by GitHub
parent 013a646799
commit b91e929086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 194 additions and 55 deletions

View file

@ -844,6 +844,7 @@ impl Project {
GitStore::new(
&worktree_store,
buffer_store.clone(),
Some(environment.clone()),
client.clone().into(),
None,
cx,
@ -972,6 +973,7 @@ impl Project {
GitStore::new(
&worktree_store,
buffer_store.clone(),
Some(environment.clone()),
ssh_proto.clone(),
Some(ProjectId(SSH_PROJECT_ID)),
cx,
@ -1179,6 +1181,7 @@ impl Project {
GitStore::new(
&worktree_store,
buffer_store.clone(),
None,
client.clone().into(),
Some(ProjectId(remote_id)),
cx,