Comments (3)
That problem is generated from within Git itself. It could be a bug in Git or, more likely, corruption in your repository. Try running
git fsck --no-dangling
to check for corruption. If that doesn't report any problems, try running
git rev-list --objects --date-order --all | wc -l
, which is an approximation of what git-sizer
runs (piped to wc
so that you are not inundated with output).
from git-sizer.
@mhagger we got the some output for git fsck --no-dangling command which is listed below :-
Checking object directories: 100% (256/256), done.
Checking objects: 100% (496047/496047), done.
broken link from commit 2bdf45df2193bd569d440fb7e495c352b7403f91
to tree 4bef4e75656aa9ec1c08dca582f2b09145796688
broken link from commit d80a9869db7bc5a42344236441a1d085d663332f
to tree e21a51d9249481b18f831b2cc3a217f75a737d43
broken link from commit f72d7affe85fd7296026a826eb6e7079254b21f9
to tree 122c30fa7b90f076a55b5cf65d768d207dc4b635
broken link from commit f72d7affe85fd7296026a826eb6e7079254b21f9
to commit 5a8e42294cb27289b3dc0a1e6753748f34fa2698
Checking connectivity: 509742, done.
missing commit 5a8e42294cb27289b3dc0a1e6753748f34fa2698
missing tree 4bef4e75656aa9ec1c08dca582f2b09145796688
missing tree 122c30fa7b90f076a55b5cf65d768d207dc4b635
missing tree e21a51d9249481b18f831b2cc3a217f75a737d43
Is it possible to continue further Or I need to fix this above issue.
from git-sizer.
@Kaleesastha: the git fsck
output indicates that your repository is corrupt (it is missing objects). You need to fix the corruption.
-
It might be that the missing objects are only reachable from reflogs. If so, then
git reflog expire --stale-fix --expire-unreachable=all --all
might fix it.
-
If you have backups or other copies of the repository (e.g., maybe your co-workers also have clones), you might be able to scavenge the missing objects from there.
-
If neither of those work, then it might be that the missing objects are only reachable from some unneeded and/or obsolete references that you could delete.
If none of those work, you might be forced to rewrite history to excise the missing objects. But that is well beyond the scope of git-sizer
.
Good luck!
from git-sizer.
Related Issues (20)
- Question: How is logical file size calculated (Total size of files) HOT 1
- Obtain a list of biggest files in the repository. HOT 1
- Question: is there anyway I can get the count of files in particular language for example cuda statistics HOT 1
- Can it work on a bare repo? HOT 1
- MASTER Test HOT 1
- Get a top 10 of biggest checkouts in repository
- Approximating size shown at https://github.com/settings/repositories HOT 4
- Please update to Go 1.16 and also release for macOS ARM64 HOT 4
- Add suggestion on how to resolve spotted issues HOT 1
- "git-sizer --version" should show a version number. HOT 5
- `git-sizer --help` should exit with 0 HOT 1
- Add new convenience options like `--no-branches`, `--stash`, etc. HOT 1
- Release 1.4.0 Windows builds flagged as malicious by multiple vendors HOT 3
- error: couldn't open Git repository: git rev-parse failed: Unknown option: -C HOT 4
- Detect & report tmp_pack files HOT 1
- Idea: have `git-sizer` read some defaults from the gitconfig
- Impove NewObjectIter method HOT 2
- [Doc] Record Golang dependency in readme.
- git-sizer error: "running 'git config': exit status 129" HOT 7
- go get: installing executables with 'go get' in module mode is deprecated HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-sizer.