giteabot backport / giteabot (push) Canceled after 0s
giteabot / giteabot (push) Canceled after 0s
release-nightly / nightly-binary (push) Canceled after 0s
release-nightly / nightly-container (push) Canceled after 0s
cache-seeder / gobuild (push) Canceled after 0s
cache-seeder / lint (bindata, lint-backend) (push) Canceled after 0s
release-nightly-snapcraft / build-and-publish (push) Canceled after 0s
Includes direct password setup links in registration emails. Assisted-by: Codex:GPT-5
11 lines
401 B
Go
11 lines
401 B
Go
// Copyright 2026 The Gitea Authors. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package gitrepo
|
|
|
|
// getRepoWriteLockKey returns the global lock key for write operations on the repository.
|
|
// Parallel write operations on the same git repository should be avoided to prevent data corruption.
|
|
func getRepoWriteLockKey(repoStoragePath string) string {
|
|
return "repo-write:" + repoStoragePath
|
|
}
|