Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Add "upstream" as a hardcoded remote name (#29382)
Julia Ryanebb39d9231f7
diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rsindex 3e4db72edfa..eeea34367f4 100644--- a/crates/git/src/repository.rs+++ b/crates/git/src/repository.rs@@ -868,8 +868,9 @@ impl GitRepository for RealGitRepository {let working_directory = self.working_directory();let git_binary_path = self.git_binary_path.clone();- const REMOTE_NAME: &str = "origin";- let remote_url = self.remote_url(REMOTE_NAME);+ let remote_url = self+ .remote_url("upstream")+ .or_else(|| self.remote_url("origin"));self.executor.spawn(async move {