[PR #1503] [CLOSED] Add correct git branch name validation #15931

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1503
Author: @lafriks
Created: 4/16/2017
Status: Closed

Base: masterHead: issue/1499


📝 Commits (4)

  • de02ea7 Add correct git branch name validation
  • 1a049bf Change git refname validation error constant name
  • d23c657 Add git reference name validation unit tests
  • 5fa98bb Remove unused variable in unit test

📊 Changes

7 files changed (+267 additions, -3 deletions)

View changed files

📝 cmd/web.go (+2 -0)
📝 modules/auth/auth.go (+3 -0)
📝 modules/auth/repo_form.go (+3 -3)
modules/validation/binding.go (+55 -0)
modules/validation/binding_test.go (+61 -0)
modules/validation/refname_test.go (+142 -0)
📝 options/locale/locale_en-US.ini (+1 -0)

📄 Description

Fix #1499


🔄 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/1503 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 4/16/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `issue/1499` --- ### 📝 Commits (4) - [`de02ea7`](https://github.com/go-gitea/gitea/commit/de02ea74c9cb3f19f8968e9d82749277c3db6562) Add correct git branch name validation - [`1a049bf`](https://github.com/go-gitea/gitea/commit/1a049bf715cabccdf30b64234fcae6115c6f4441) Change git refname validation error constant name - [`d23c657`](https://github.com/go-gitea/gitea/commit/d23c65793902408434cf37c131afb75f4ffce8d6) Add git reference name validation unit tests - [`5fa98bb`](https://github.com/go-gitea/gitea/commit/5fa98bb016d427b05281dccf92418bc39b4ac912) Remove unused variable in unit test ### 📊 Changes **7 files changed** (+267 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+2 -0) 📝 `modules/auth/auth.go` (+3 -0) 📝 `modules/auth/repo_form.go` (+3 -3) ➕ `modules/validation/binding.go` (+55 -0) ➕ `modules/validation/binding_test.go` (+61 -0) ➕ `modules/validation/refname_test.go` (+142 -0) 📝 `options/locale/locale_en-US.ini` (+1 -0) </details> ### 📄 Description Fix #1499 --- <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:58:12 -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#15931