Git askpass (#25953)

Supersedes #25848

Release Notes:

- git: Supporting push/pull/fetch when remote requires auth

---------

Co-authored-by: Mikayla Maki <mikayla.c.maki@gmail.com>
This commit is contained in:
Conrad Irwin 2025-03-05 22:20:06 -07:00 committed by GitHub
parent 6fdb666bb7
commit c34357e2ab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 864 additions and 379 deletions

View file

@ -707,8 +707,15 @@ impl Project {
)
});
let git_store =
cx.new(|cx| GitStore::new(&worktree_store, buffer_store.clone(), None, None, cx));
let git_store = cx.new(|cx| {
GitStore::new(
&worktree_store,
buffer_store.clone(),
client.clone().into(),
None,
cx,
)
});
cx.subscribe(&lsp_store, Self::on_lsp_store_event).detach();
@ -832,7 +839,7 @@ impl Project {
GitStore::new(
&worktree_store,
buffer_store.clone(),
Some(ssh_proto.clone()),
ssh_proto.clone(),
Some(ProjectId(SSH_PROJECT_ID)),
cx,
)
@ -1040,7 +1047,7 @@ impl Project {
GitStore::new(
&worktree_store,
buffer_store.clone(),
Some(client.clone().into()),
client.clone().into(),
Some(ProjectId(remote_id)),
cx,
)