Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to GetLatestCommitDate: parsing time "" as "Mon Jan _2 15:04:05 2006 -0700": cannot parse "" as "Mon" #30424

Closed
yp05327 opened this issue Apr 12, 2024 · 0 comments · Fixed by #30432
Labels
Milestone

Comments

@yp05327
Copy link
Contributor

yp05327 commented Apr 12, 2024

Description

image

Mirror an empty repo, then manually sync it, you will get this error
As it is an empty repo, so we can not get latest commit time here.
image

Gitea Version

latest

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

build

Database

None

@lunny lunny added this to the 1.21.11 milestone Apr 12, 2024
silverwind pushed a commit that referenced this issue Apr 13, 2024
Fix #30424

Co-authored-by: Giteabot <teabot@gitea.io>
GiteaBot added a commit to GiteaBot/gitea that referenced this issue Apr 13, 2024
silverwind pushed a commit that referenced this issue Apr 13, 2024
Backport #30432 by @yp05327

Fix #30424

Co-authored-by: yp05327 <576951401@qq.com>
silverwind pushed a commit that referenced this issue Apr 14, 2024
Backport #30432
Fix #30424

ps: convert `gitrepo.OpenRepository` to `git.OpenRepository`
remove `ctx` from `checkAndUpdateEmptyRepository`

Co-authored-by: Giteabot <teabot@gitea.io>
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Jul 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants