Comments (5)
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.
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.
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.
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.
Grit is no longer maintained. See #183 and check out libgit2/rugged.
from grit.
Related Issues (20)
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 grit.