Coder Social home page Coder Social logo

Comments (3)

mhagger avatar mhagger commented on May 28, 2024

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.

Kaleesastha avatar Kaleesastha commented on May 28, 2024

@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.

mhagger avatar mhagger commented on May 28, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.