summaryrefslogtreecommitdiff
path: root/server/src/git_socket.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/git_socket.rs')
-rw-r--r--server/src/git_socket.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/git_socket.rs b/server/src/git_socket.rs
index 90f9dc2..a4805be 100644
--- a/server/src/git_socket.rs
+++ b/server/src/git_socket.rs
@@ -5,12 +5,15 @@ pub struct GitReceive {
pub old_value: String,
pub new_value: String,
pub reference: String,
+ // Only set for pre hooks, because server can't read the objects the pre-hook has not yet
+ // accepted, so to be able to validate the commiter, send them. Also only set if new_value
+ // is not empty.
+ pub commiter: Option<String>,
}
#[derive(Deserialize, Serialize)]
pub struct GitHookRequest {
pub pre: bool,
- pub user: String,
pub receive: Vec<GitReceive>,
}