aboutsummaryrefslogtreecommitdiff
path: root/git_hooks_handle_other.go (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-04-05Move things to internal/v0.1.23Runxi Yu1-2/+2
2025-04-05Use cmd/forge for the entry pointRunxi Yu1-1/+1
2025-04-05packPasses shall no longer be a global variableRunxi Yu1-1/+1
2025-04-05ircSend* shall no longer be global variablesRunxi Yu1-1/+1
2025-04-05database shall no longer be a global variableRunxi Yu1-3/+3
2025-04-05config shall no longer be a global variableRunxi Yu1-5/+5
2025-04-05ansiec: Move ansi escape codes to this moduleRunxi Yu1-1/+1
2025-04-05Use log/slog instead of clogRunxi Yu1-2/+2
2025-04-05Separate code/README rendering and unsafe to their own packagesRunxi Yu1-1/+2
2025-03-31Add descriptive comments to most Go functionsRunxi Yu1-0/+7
2025-03-31Per-repo merge request sequencesRunxi Yu1-6/+7
2025-03-31Replace FileContributor with FileCopyrightTextRunxi Yu1-1/+1
2025-03-30Avoid allocations by using unsafe strinng/bytes conversionsRunxi Yu1-1/+1
2025-03-29Properly format files...v0.1.4Runxi Yu1-3/+1
2025-03-29Make git_hooks_handle portable ish?Runxi Yu1-37/+4
2025-03-22Variable name lengthsRunxi Yu1-22/+24
2025-03-22Initial lintingRunxi Yu1-6/+7
2025-03-22Allow anonymous MRs...?Runxi Yu1-4/+11
2025-03-22Log incoming and outgoing messagesRunxi Yu1-1/+1
2025-03-22Send IRC message when receiving merge requestsRunxi Yu1-1/+8
2025-03-21ReformatRunxi Yu1-1/+1
2025-03-19Remove underscores from Go code, pt 6Runxi Yu1-4/+3
2025-03-19Remove underscores from Go code, pt 4Runxi Yu1-137/+136
2025-03-19Remove underscores from Go code, pt 3Runxi Yu1-94/+94
2025-03-18Remove underscores from Go code, pt 2Runxi Yu1-10/+10
2025-03-18Remove underscores from Go code, pt 1Runxi Yu1-1/+1
2025-03-18git_hooks_client -> hookcRunxi Yu1-1/+1
2025-03-07hooks, fedauth: Add basic federated authentication for git pushRunxi Yu1-0/+47
2025-03-07hooks: Remove debug printfRunxi Yu1-2/+0
2025-03-07hooks: Send/process environment variables starting with GIT_Runxi Yu1-0/+29
2025-03-06*: Support subgroups via SQL recursionRunxi Yu1-1/+1
2025-03-05*: Typing fixesRunxi Yu1-1/+1
2025-03-05*: Replace some := with varRunxi Yu1-34/+49
2025-03-03Add SPDX license headers to all Go filesRunxi Yu1-0/+3
2025-02-20ssh/recv: Check hooksPath before receiving packsRunxi Yu1-20/+13
2025-02-20hooks, ssh: Indicate URL of newly-created MRsRunxi Yu1-3/+6
2025-02-20hooks: Clarify the last ACK/NAK being overallRunxi Yu1-4/+3
2025-02-20hooks: Use colorful SSH messagesRunxi Yu1-23/+32
2025-02-19hooks: Don't trim contrib/ when inserting MRsRunxi Yu1-2/+2
2025-02-19all: Use COALESCE to handle some nullable database fieldsRunxi Yu1-1/+6
2025-02-19ssh/recv, hooks: Create MRs on push, reject pushes to others' MRsRunxi Yu1-5/+32
2025-02-19hooks: Ignore error value of the last conn.Write()Runxi Yu1-1/+1
2025-02-19hooks: Use ssh stderr directly instead of going through hookRunxi Yu1-132/+99
2025-02-19hooks: Reject non-FF contrib pushes for nowRunxi Yu1-36/+68
We actually intend to create special refs for this in the future.
2025-02-19hooks: Add TODOs on where to create MRs and MR history pointsRunxi Yu1-0/+8
2025-02-19*.go: Use lowercase error valuesRunxi Yu1-2/+2
2025-02-18hooks: Check error on conn.WriteRunxi Yu1-12/+36
2025-02-18*.go: Add some comments for docsRunxi Yu1-0/+4
2025-02-18git_hooks_handle: Allow anonymous pushes to contrib/Runxi Yu1-2/+74
2025-02-18hooks: Fix the race condition that causes EPIPERunxi Yu1-0/+7
The hooks handler in the main daemon didn't wait for the hook client to write fully, and sometimes prematurely closes the connection, causing the hook client's splice to return EPIPE (or SIGPIPE if the signal handler wasn't installed). To remedy this, we call shutdown(sock, SHUT_WR) in the client, so that attempts to read on the server side return EOF. Then we can simply use io.Copy(&buf, conn) on the server side to fetch all of the data into a buffer.