[PR #3241] [MERGED] Fix repo-transfer-and-team-repo-count bug #16841

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3241
Author: @ethantkoenig
Created: 12/20/2017
Status: Merged
Merged: 12/20/2017
Merged by: @lunny

Base: masterHead: fix/team_num_repos


📝 Commits (2)

  • bf2dfd1 Fix repo-transfer-and-team-repo-count bug
  • 3d19100 Merge branch 'master' into fix/team_num_repos

📊 Changes

2 files changed (+23 additions, -14 deletions)

View changed files

📝 models/repo.go (+0 -14)
📝 models/repo_test.go (+23 -0)

📄 Description

Remove code in TransferOwnership which decrements teams' number of repos, since that is already done by the removeOrgRepo(..) method. Also adds a unit test for a TransferOwnership.


🔄 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/3241 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 12/20/2017 **Status:** ✅ Merged **Merged:** 12/20/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/team_num_repos` --- ### 📝 Commits (2) - [`bf2dfd1`](https://github.com/go-gitea/gitea/commit/bf2dfd1b72e3d7421ec0db0c36dc582b16f90287) Fix repo-transfer-and-team-repo-count bug - [`3d19100`](https://github.com/go-gitea/gitea/commit/3d191008f21ade82536fd76dde47479866d2145e) Merge branch 'master' into fix/team_num_repos ### 📊 Changes **2 files changed** (+23 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `models/repo.go` (+0 -14) 📝 `models/repo_test.go` (+23 -0) </details> ### 📄 Description Remove code in `TransferOwnership` which decrements teams' number of repos, since that is already done by the `removeOrgRepo(..)` method. Also adds a unit test for a `TransferOwnership`. --- <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:20:21 -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#16841