Giter Club home page Giter Club logo

Comments (5)

davetron5000 avatar davetron5000 commented on July 28, 2024

Grit.debug = true can help figure out what it's doing, but I, too, wouldn't mind errors to be generated. I suspect that git doesn't set useful exit codes, tho

from grit.

nirvdrum avatar nirvdrum commented on July 28, 2024

git does. I think the real problem is the use of popen3, which doesn't capture exit status codes. popen4 does, however, so that may be the way to go.

from grit.

floehopper avatar floehopper commented on July 28, 2024

I want to have Grit fail fast by raising an exception if any shell commands have a non-zero exit status. A classic example of this is when you don't have git in your environment's path.

It looks like some work has been done on this - see SHA: 889adf5 - but I can't see how I pass the :raise option into the Grit commands. Am I missing something?

Thanks.

from grit.

ohookins avatar ohookins commented on July 28, 2024

I found that while Grit logs problems, something critical like the git tool not being present/found means that Git.init will silently fail but when that passes back to Git::Repo.initialize there is no repository in existance and a misleading exception is thrown.

Let me know if this deserves a separate issue.

from grit.

bkeepers avatar bkeepers commented on July 28, 2024

Grit is no longer maintained. See #183 and check out libgit2/rugged.

from grit.

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.