diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index 3e4db72edf..eeea34367f 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 {