From 65c72437cb027f4e8cc2661ffd402d989d923d0c Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Sun, 14 Jun 2026 11:31:47 -0700 Subject: [PATCH] update comment --- modules/gitrepo/fetch.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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.