Gitea Version
latest
Git Version
2.27.0
Operating System
Windows 10
How are you running Gitea?
By running Gitea
via command-line
Database
SQLite
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
When I push offline/manually repository size and languages percentage doesn't update, by offline I mean copy bare repository from somewhere else and paste to repo location, not by pushing to http://localhost:....
Screenshots
No response
Activity
Gusted commentedon Jan 2, 2022
I think this is working as intended from my perspective. As I'm pretty sure that Gitea doesn't allow nor support that users are messing around with the repo's that Gitea is hosting. As a lot of functionality(like language and size) isn't generated on-demand, but they are generated when their are new commits on the main branch.
dehghani-mehdi commentedon Jan 2, 2022
Gitea shows all commits and files correctly, even tho I manually update the repo.
Gusted commentedon Jan 2, 2022
Well, that doesn't imply that it's allowed or supported. I'm against it, as allowing this can cause for a lot of undefined behavior. Maybe some other maintainer want's to shed some light 🤷🏽
dehghani-mehdi commentedon Jan 2, 2022
Other maintainer can set the remote url to
file://path/to/repository.git
, as I did, in fact we currently working this way without any problem.I can make a fake commit and push to
http://localhost:....
, so Gitea update repo info (e.g languages and size), but I'm not happy with it. that's why I filed this issue.Gusted commentedon Jan 2, 2022
Well you could manually update it by going to the settings page of the repo and then click on the
Add to the Re-Index queue
dehghani-mehdi commentedon Jan 2, 2022
I can not see
Code Statistics Indexer
section. all I have is this:Gusted commentedon Jan 2, 2022
#17494 It will be added in the next release.
dehghani-mehdi commentedon Jan 2, 2022
By doing that, the language and size info will be updated correctly?
Gusted commentedon Jan 2, 2022
Yap. It then takes the latest commit(doesn't mater if it was pushed online or offline).
a1012112796 commentedon Jan 3, 2022
Maybe that's not usefull for repository size ...
Gusted commentedon Jan 3, 2022
🤷🏽 I'm pretty sure that gitea doesn't support nor handle that users are messing around with the repo's under the data folder. So it's just own-risk and what works, that works.