aboutsummaryrefslogtreecommitdiffstats
path: root/services/repository/create.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2025-05-11 12:18:46 -0700
committerGitHub <noreply@github.com>2025-05-11 19:18:46 +0000
commit780e92ea99646dfefbe11734a4845fbf304be83c (patch)
tree3c008247a169af266012dd9afb2a6fa20515b5bb /services/repository/create.go
parentb07e03956af8f29464067b19cb5cacee358b592f (diff)
downloadgitea-780e92ea99646dfefbe11734a4845fbf304be83c.tar.gz
gitea-780e92ea99646dfefbe11734a4845fbf304be83c.zip
Only git operations should update `last changed` of a repository (#34388)
Try to fix #32046
Diffstat (limited to 'services/repository/create.go')
-rw-r--r--services/repository/create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/repository/create.go b/services/repository/create.go
index c4a9dbb1b6..83d7d84c08 100644
--- a/services/repository/create.go
+++ b/services/repository/create.go
@@ -321,7 +321,7 @@ func CreateRepositoryDirectly(ctx context.Context, doer, owner *user_model.User,
// 7 - update repository status to be ready
if needsUpdateToReady {
repo.Status = repo_model.RepositoryReady
- if err = repo_model.UpdateRepositoryCols(ctx, repo, "status"); err != nil {
+ if err = repo_model.UpdateRepositoryColsWithAutoTime(ctx, repo, "status"); err != nil {
return nil, fmt.Errorf("UpdateRepositoryCols: %w", err)
}
}