Skip to content

Revisit empty repo will always update the repo's timestamp #33119

Closed
@changchaishi

Description

@changchaishi

Description

Reproduce steps (Gitea demo):

  1. Create an empty repo from your profile
  2. empty repo shows last updated now
  3. wait after 1 minute
  4. empty repo at profile shows last updated 1 minute ago (expected)
  5. revisit the empty repo's home page, then back to the profile page for the repo list
  6. empty repo shows last updated now (unexpected)

6 is unexpected since we at step 5 do nothing. Suppose the timestamp should stay fixed.

I will create a PR for this. This is a tiny bug.

Expected behavior:
At step 6, the last update time should grow.

Gitea Version

40765b5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

Snipaste_2025-01-06_15-09-07
repo
view_home

Git Version

No response

Operating System

No response

How are you running Gitea?

Gitea Demo and Ubuntu sqlite3 latest commit local build

Database

SQLite

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions