Use git config --global user.email
for email address in automatic Co-authored-by
(#32624)
Release Notes: - Automatic population of `Co-authored-by` now uses `git config --global user.email` --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com> Co-authored-by: Conrad <conrad@zed.dev>
This commit is contained in:
parent
e56a027bea
commit
7d708c14e4
24 changed files with 188 additions and 69 deletions
|
@ -26,6 +26,7 @@ mod environment;
|
|||
use buffer_diff::BufferDiff;
|
||||
use context_server_store::ContextServerStore;
|
||||
pub use environment::{EnvironmentErrorMessage, ProjectEnvironmentEvent};
|
||||
use git::repository::get_git_committer;
|
||||
use git_store::{Repository, RepositoryId};
|
||||
pub mod search_history;
|
||||
mod yarn;
|
||||
|
@ -1323,9 +1324,12 @@ impl Project {
|
|||
),
|
||||
EntitySubscription::DapStore(client.subscribe_to_entity::<DapStore>(remote_id)?),
|
||||
];
|
||||
let committer = get_git_committer(&cx).await;
|
||||
let response = client
|
||||
.request_envelope(proto::JoinProject {
|
||||
project_id: remote_id,
|
||||
committer_email: committer.email,
|
||||
committer_name: committer.name,
|
||||
})
|
||||
.await?;
|
||||
Self::from_join_project_response(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue