diff --git a/crates/git/src/git.rs b/crates/git/src/git.rs index 197ce4d6fb3bb3a41dd0be67e542d91d87561736..8b8f88ef65b86ea9157e1c3217fa01bb0d6355cb 100644 --- a/crates/git/src/git.rs +++ b/crates/git/src/git.rs @@ -232,14 +232,12 @@ impl From 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 { 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 3efbb57e0312dc7e07d0dbed69f5e096a2e52eb3..ae39cc331c3dae44261392e1a4d1782901443795 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 6e3573b91a690290b71e626f3bd67fc81d8d8e92..d1e56f4f8c89e655dc0e153be013903d48afc99f 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;