Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ep: Fix revision resolution for tilde expressions (#46258)
Oleksiy Syvokon82826e723eb4
diff --git a/crates/edit_prediction_cli/src/git.rs b/crates/edit_prediction_cli/src/git.rsindex f2fe183d76e..711464e0f07 100644--- a/crates/edit_prediction_cli/src/git.rs+++ b/crates/edit_prediction_cli/src/git.rs@@ -106,5 +106,9 @@ pub async fn fetch_if_needed(repo_path: &Path, revision: &str) -> Result<String>run_git(repo_path, &["fetch", "origin"]).await?;}- run_git(repo_path, &["rev-parse", "FETCH_HEAD"]).await+ run_git(+ repo_path,+ &["rev-parse", &format!("{}^{{commit}}", revision)],+ )+ .await}