[PR #1030] [MERGED] Move push update to post-receive and protected branch check to pre-receive #15719

Closed
opened 2025-11-02 11:53:02 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1030
Author: @lunny
Created: 2/23/2017
Status: Merged
Merged: 2/25/2017
Merged by: @lunny

Base: masterHead: lunny/move_push_update_post_receive


📝 Commits (4)

  • 970ffb9 move all push update to git hook post-receive and protected branch check to git hook pre-receive
  • c7929f4 add SSH_ORIGINAL_COMMAND check back
  • a3143a6 remove all unused codes
  • 6b074a3 fix the import

📊 Changes

9 files changed (+175 additions, -415 deletions)

View changed files

📝 cmd/hook.go (+118 -17)
📝 cmd/serv.go (+13 -63)
cmd/update.go (+0 -83)
📝 main.go (+0 -1)
models/fixtures/update_task.yml (+0 -20)
📝 models/models.go (+0 -2)
📝 models/update.go (+9 -34)
📝 models/update_test.go (+0 -34)
📝 routers/repo/http.go (+35 -161)

📄 Description

Move all push update to git hook post-receive and protected branch check to git hook pre-receive. This will fix #218 and also close #1028 since that's a part of this one. This also should fix the web hook doesn't available when push via HTTP.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1030 **Author:** [@lunny](https://github.com/lunny) **Created:** 2/23/2017 **Status:** ✅ Merged **Merged:** 2/25/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `lunny/move_push_update_post_receive` --- ### 📝 Commits (4) - [`970ffb9`](https://github.com/go-gitea/gitea/commit/970ffb9d0c72edee8165b0a98532746cf2c8b075) move all push update to git hook post-receive and protected branch check to git hook pre-receive - [`c7929f4`](https://github.com/go-gitea/gitea/commit/c7929f4780bebfda9a28089d27e3225a5047d9c0) add SSH_ORIGINAL_COMMAND check back - [`a3143a6`](https://github.com/go-gitea/gitea/commit/a3143a6887f64a598e7f32b25b4ce68f8c0c1880) remove all unused codes - [`6b074a3`](https://github.com/go-gitea/gitea/commit/6b074a3ffbae0ef7ee4fe5a4b4954b0e14ba8b3c) fix the import ### 📊 Changes **9 files changed** (+175 additions, -415 deletions) <details> <summary>View changed files</summary> 📝 `cmd/hook.go` (+118 -17) 📝 `cmd/serv.go` (+13 -63) ➖ `cmd/update.go` (+0 -83) 📝 `main.go` (+0 -1) ➖ `models/fixtures/update_task.yml` (+0 -20) 📝 `models/models.go` (+0 -2) 📝 `models/update.go` (+9 -34) 📝 `models/update_test.go` (+0 -34) 📝 `routers/repo/http.go` (+35 -161) </details> ### 📄 Description Move all push update to git hook post-receive and protected branch check to git hook pre-receive. This will fix #218 and also close #1028 since that's a part of this one. This also should fix the web hook doesn't available when push via HTTP. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:53:02 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15719