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

Repository size and languages percentage doesn't update when repo updated manually #18154

Closed
dehghani-mehdi opened this issue Jan 2, 2022 · 11 comments

Comments

@dehghani-mehdi
Copy link

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

@Gusted
Copy link
Contributor

Gusted commented 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
Copy link
Author

Gitea shows all commits and files correctly, even tho I manually update the repo.

@Gusted
Copy link
Contributor

Gusted commented Jan 2, 2022

Gitea shows all commits and files correctly, even tho I manually update the repo.

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
Copy link
Author

dehghani-mehdi commented 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
Copy link
Contributor

Gusted commented Jan 2, 2022

so Gitea update repo info (e.g languages and size), but I'm not happy with it. that's why I filed this issue.

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

image

@dehghani-mehdi
Copy link
Author

I can not see Code Statistics Indexer section. all I have is this:

image

@Gusted
Copy link
Contributor

Gusted commented Jan 2, 2022

#17494 It will be added in the next release.

@dehghani-mehdi
Copy link
Author

By doing that, the language and size info will be updated correctly?

@Gusted
Copy link
Contributor

Gusted commented Jan 2, 2022

Yap. It then takes the latest commit(doesn't mater if it was pushed online or offline).

@a1012112796
Copy link
Member

Maybe that's not usefull for repository size ...

@Gusted
Copy link
Contributor

Gusted commented Jan 3, 2022

Maybe that's not usefull for repository size ...

🤷🏽 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.

@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants