Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Revert "Increase askpass timeout for git operations (#42946)" (#44578)

Cole Millerd21628c349bd
diff --git a/crates/git/src/git.rs b/crates/git/src/git.rs
index 197ce4d6fb3..8b8f88ef65b 100644
--- a/crates/git/src/git.rs
+++ b/crates/git/src/git.rs
@@ -232,14 +232,12 @@ impl From<Oid> for usize {
#[derive(Copy, Clone, Debug)]
pub enum RunHook {
PreCommit,
- PrePush,
}
impl RunHook {
pub fn as_str(&self) -> &str {
match self {
Self::PreCommit => "pre-commit",
- Self::PrePush => "pre-push",
}
}
@@ -250,7 +248,6 @@ impl RunHook {
pub fn from_proto(value: i32) -> Option<Self> {
match value {
0 => Some(Self::PreCommit),
- 1 => Some(Self::PrePush),
_ => None,
}
}
diff --git a/crates/project/src/git_store.rs b/crates/project/src/git_store.rs
index 3efbb57e031..ae39cc331c3 100644
--- a/crates/project/src/git_store.rs
+++ b/crates/project/src/git_store.rs
@@ -4692,11 +4692,9 @@ impl Repository {
});
let this = cx.weak_entity();
- let rx = self.run_hook(RunHook::PrePush, cx);
self.send_job(
Some(format!("git push {} {} {}", args, remote, branch).into()),
move |git_repo, mut cx| async move {
- rx.await??;
match git_repo {
RepositoryState::Local(LocalRepositoryState {
backend,
diff --git a/crates/proto/proto/git.proto b/crates/proto/proto/git.proto
index 6e3573b91a6..d1e56f4f8c8 100644
--- a/crates/proto/proto/git.proto
+++ b/crates/proto/proto/git.proto
@@ -580,7 +580,7 @@ message GitCreateWorktree {
message RunGitHook {
enum GitHook {
PRE_COMMIT = 0;
- PRE_PUSH = 1;
+ reserved 1;
}
uint64 project_id = 1;