Skip to content

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

@dehghani-mehdi

Description

@dehghani-mehdi

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

Gusted commented on Jan 2, 2022

@Gusted
Contributor

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

dehghani-mehdi commented on Jan 2, 2022

@dehghani-mehdi
Author

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

Gusted

Gusted commented on Jan 2, 2022

@Gusted
Contributor

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

dehghani-mehdi commented on Jan 2, 2022

@dehghani-mehdi
Author

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

Gusted commented on Jan 2, 2022

@Gusted
Contributor

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

dehghani-mehdi commented on Jan 2, 2022

@dehghani-mehdi
Author

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

image

Gusted

Gusted commented on Jan 2, 2022

@Gusted
Contributor

#17494 It will be added in the next release.

dehghani-mehdi

dehghani-mehdi commented on Jan 2, 2022

@dehghani-mehdi
Author

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

Gusted

Gusted commented on Jan 2, 2022

@Gusted
Contributor

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

a1012112796

a1012112796 commented on Jan 3, 2022

@a1012112796
Member

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

Gusted

Gusted commented on Jan 3, 2022

@Gusted
Contributor

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.

locked and limited conversation to collaborators on Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dehghani-mehdi@a1012112796@Gusted

        Issue actions

          Repository size and languages percentage doesn't update when repo updated manually · Issue #18154 · go-gitea/gitea