Git Product home page Git Product logo

Comments (2)

jokeyrhyme avatar jokeyrhyme commented on May 28, 2024 1

I see this, too, on macOS, with a real Git repository

$ git-sizer --version
git-sizer release 1.2.0

$ git --version
git version 2.18.0

$ git-sizer
hint: Support for <GIT_DIR>/info/grafts is deprecated
hint: and will be removed in a future Git version.
hint: 
hint: Please use "git replace --convert-graft-file"
hint: to convert the grafts into replace refs.
hint: 
hint: Turn this message off by running
hint: "git config advice.graftFileDeprecated false"
hint: Support for <GIT_DIR>/info/grafts is deprecated
hint: and will be removed in a future Git version.
hint: 
hint: Please use "git replace --convert-graft-file"
hint: to convert the grafts into replace refs.
hint: 
hint: Turn this message off by running
hint: "git config advice.graftFileDeprecated false"
Processing blobs: 516                        
Processing trees: 552                        
Processing commits: 222                        
Matching commits to trees: 222                        
Processing annotated tags: 0                        
Processing references: 16                        
No problems above the current threshold were found

from git-sizer.

mhagger avatar mhagger commented on May 28, 2024

Thanks for the bug report.

We don't actually use git grafts for anything. The only thing we do is explicitly disable any grafts file that the user might have set up when running git by setting GIT_GRAFT_FILE to the equivalent of /dev/null.

Do you see this warning only when testing, or also when processing a real Git repository?

ISTM that there are a couple of options:

  • Detect when a grafts file might be in use and only disable it then. This would require duplicating whatever logic Git uses to make that determination.
  • Continue setting GIT_GRAFT_FILE but also set the config value advice.graftFileDeprecated to false. But it could be that when grafts are finally, truly deprecated, then we will have a problem again.
  • Make our actions depend on what Git version is installed (which would have to be detected, say by running git --version).

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.