[PR #5617] [MERGED] branch: Trigger update when deleting branch via UI. #17869

Closed
opened 2025-11-02 16:19:50 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5617
Author: @HarshitOnGitHub
Created: 1/2/2019
Status: Merged
Merged: 1/2/2019
Merged by: @lunny

Base: masterHead: Issue_5309


📝 Commits (1)

  • 8e12a4b branch: Trigger update when deleting branch via UI.

📊 Changes

1 file changed (+13 additions, -1 deletions)

View changed files

📝 routers/repo/branch.go (+13 -1)

📄 Description

I also tried the approach to delete the branch by executing git push --delete origin <banch_name> in local copy of repository but it didn't trigger the post-receive hook. I tried debugging and everything seems fine yet a push via local copy doesn't trigger update. Can anyone shed some light on this?

Fixes: #5309.


🔄 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/5617 **Author:** [@HarshitOnGitHub](https://github.com/HarshitOnGitHub) **Created:** 1/2/2019 **Status:** ✅ Merged **Merged:** 1/2/2019 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `Issue_5309` --- ### 📝 Commits (1) - [`8e12a4b`](https://github.com/go-gitea/gitea/commit/8e12a4be51a4c27974abd5f68b929f17a8419348) branch: Trigger update when deleting branch via UI. ### 📊 Changes **1 file changed** (+13 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/branch.go` (+13 -1) </details> ### 📄 Description I also tried the approach to delete the branch by executing `git push --delete origin <banch_name>` in local copy of repository but it didn't trigger the `post-receive` hook. I tried debugging and everything seems fine yet a push via local copy doesn't trigger update. Can anyone shed some light on this? Fixes: #5309. --- <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 16:19:50 -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#17869