Skip to content

git-annex: size miscalculation #32

@kousu

Description

@kousu

It seems to be possible that the summary size on a repo (top right) can become out of sync with git-annex files. In this example, this one file is larger (6.6MB) than the repo thinks its entire size (3.3MB) is:

Screenshot 2022-11-30 at 00-52-07 test

The number seems to be generated -- and then cached -- by this function:

https://github.com/neuropoly/gitea/blob/fa43bce541507c8a702723f84764a48db9278506/modules/repository/create.go#L288-L301

So this is a cache invalidation problem: git annex copy --to is not triggering a recomputation like it should be.

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

    Issue actions