diff --git a/modules/gitrepo/fetch.go b/modules/gitrepo/fetch.go index a0549aabc2..d369fa97ae 100644 --- a/modules/gitrepo/fetch.go +++ b/modules/gitrepo/fetch.go @@ -12,9 +12,9 @@ import ( // FetchRemoteCommit fetches a specific commit and its related objects from a remote // repository into the managed repository. // -// If no reference (branch, tag, or other ref) points to the fetched commit, it will -// be treated as unreachable and cleaned up by `git gc` after the default prune -// expiration period (2 weeks). Ref: https://www.kernel.org/pub/software/scm/git/docs/git-gc.html +// If no reference (branch, tag, or other ref) points to the fetched commit, it becomes +// unreachable. It can be cleaned up by a later `git gc` / auto-gc opportunity, such as +// a future push, subject to the repository's prune policy. Ref: https://www.kernel.org/pub/software/scm/git/docs/git-gc.html // // This behavior is sufficient for temporary operations, such as determining the // merge base between commits.