aboutsummaryrefslogtreecommitdiff
path: root/network/receivepack/service/hook_apply.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-30 20:01:38 +0000
committerGravatar Runxi Yu2026-03-30 20:01:38 +0000
commit31f6ea6809c04599e2016565eee0e8ae255331c3 (patch)
treed257807b75f81eb4f5c292be4b127dfb6d3e25fd /network/receivepack/service/hook_apply.go
parentnetwork/receivepack: Fix some leftovers (diff)
signatureNo signature
network/receivepack/service: Some cleanups v0.1.162
Diffstat (limited to 'network/receivepack/service/hook_apply.go')
-rw-r--r--network/receivepack/service/hook_apply.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/network/receivepack/service/hook_apply.go b/network/receivepack/service/hook_apply.go
index 5bd8f596..97d25009 100644
--- a/network/receivepack/service/hook_apply.go
+++ b/network/receivepack/service/hook_apply.go
@@ -1,18 +1,5 @@
package service
-func buildHookUpdates(commands []Command) []RefUpdate {
- updates := make([]RefUpdate, 0, len(commands))
- for _, command := range commands {
- updates = append(updates, RefUpdate{
- Name: command.Name,
- OldID: command.OldID,
- NewID: command.NewID,
- })
- }
-
- return updates
-}
-
func resultForHookRejection(command Command, message string) CommandResult {
result := successCommandResult(command)
result.Error = message