Only git operations should update last changed of a repository (#34388)

Try to fix #32046
This commit is contained in:
Lunny Xiao authored and GitHub committed 2025-05-11 19:18:46 +00:00
1 parent b07e03956a
commit 780e92ea99
19 files changed
+28 -33

No files matched your search

+1 -1
View File
@@ -365,7 +365,7 @@ func ChangeDefaultWikiBranch(ctx context.Context, repo *repo_model.Repository, n
}
return db.WithTx(ctx, func(ctx context.Context) error {
repo.DefaultWikiBranch = newBranch
if err := repo_model.UpdateRepositoryCols(ctx, repo, "default_wiki_branch"); err != nil {
if err := repo_model.UpdateRepositoryColsNoAutoTime(ctx, repo, "default_wiki_branch"); err != nil {
return fmt.Errorf("unable to update database: %w", err)
}