[PR #3455] [MERGED] Fix synchronization bug in repo indexer #16947

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3455
Author: @ethantkoenig
Created: 2/5/2018
Status: Merged
Merged: 2/5/2018
Merged by: @lafriks

Base: masterHead: fix/repo_index


📝 Commits (3)

  • 84205e3 Fix synchronization bug in repo indexer
  • dda6bc0 fmt
  • 7d5ef8b Merge branch 'master' into fix/repo_index

📊 Changes

1 file changed (+100 additions, -62 deletions)

View changed files

📝 models/repo_indexer.go (+100 -62)

📄 Description

Fixes a bug in the repo indexer code where local copies of repositories were accessed without the corresponding lock.

Since the repo indexer code only needs to read changes that have already been pushed, it doesn't need to access the local copies in the first place; it can just run commands against the bare repo directly.


🔄 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/3455 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 2/5/2018 **Status:** ✅ Merged **Merged:** 2/5/2018 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `fix/repo_index` --- ### 📝 Commits (3) - [`84205e3`](https://github.com/go-gitea/gitea/commit/84205e3f2a70069a0fb0330ded55991ba858ddf3) Fix synchronization bug in repo indexer - [`dda6bc0`](https://github.com/go-gitea/gitea/commit/dda6bc0d637a410de23e2ac4a24b759e252d9eb1) fmt - [`7d5ef8b`](https://github.com/go-gitea/gitea/commit/7d5ef8b5c4fc266ffeeb40969f84e738a7595ea2) Merge branch 'master' into fix/repo_index ### 📊 Changes **1 file changed** (+100 additions, -62 deletions) <details> <summary>View changed files</summary> 📝 `models/repo_indexer.go` (+100 -62) </details> ### 📄 Description Fixes a bug in the repo indexer code where local copies of repositories were accessed without the corresponding lock. Since the repo indexer code only needs to read changes that have already been pushed, it doesn't need to access the local copies in the first place; it can just run commands against the bare repo directly. --- <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:22:45 -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#16947