-
Notifications
You must be signed in to change notification settings - Fork 2
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
git-annex: size miscalculation #32
Comments
Here are all the callers:
I notice that last line says 'push' so I took an educated guess and tried adding a commit:
Now the size is fixed: so it really does seem to be a relatively simple cache-invalidation issue. So what we want to do here, maybe, is add an UpdateRepoSize() call to the git-annex-shell code? Somewhere around here: |
In practice this bug is going to be pretty rare, since usually you must |
Heads up: this is getting significantly more complicated go-gitea#22900 |
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:
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.The text was updated successfully, but these errors were encountered: