[PR #2760] [CLOSED] Refactor git HTTP handler #16575

Closed
opened 2025-11-02 12:13:47 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2760
Author: @Morlinest
Created: 10/21/2017
Status: Closed

Base: masterHead: refactor/HTTP-handler


📝 Commits (1)

  • 40b47b5 Refactor git HTTP handler

📊 Changes

1 file changed (+144 additions, -161 deletions)

View changed files

📝 routers/repo/http.go (+144 -161)

📄 Description

  1. Reduce ctx.Handle... return code blocks (error prone)
  2. Fixes missing return (line 186: https://github.com/go-gitea/gitea/pull/2760/files#diff-ccdf93430400107520f30815fe24a649L186)
  3. Optimize/simplify code

🔄 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/2760 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 10/21/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `refactor/HTTP-handler` --- ### 📝 Commits (1) - [`40b47b5`](https://github.com/go-gitea/gitea/commit/40b47b557cd2b4b810a5f53f37c4026d1738bc5d) Refactor git HTTP handler ### 📊 Changes **1 file changed** (+144 additions, -161 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/http.go` (+144 -161) </details> ### 📄 Description 1. Reduce `ctx.Handle... return` code blocks (error prone) 1. Fixes missing `return` (line 186: https://github.com/go-gitea/gitea/pull/2760/files#diff-ccdf93430400107520f30815fe24a649L186) 1. Optimize/simplify code --- <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 12:13:47 -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#16575