-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should throw errors #2
Comments
|
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. |
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 It looks like some work has been done on this - see SHA: 889adf5 - but I can't see how I pass the Thanks. |
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. |
further improving performance
Grit is no longer maintained. See #183 and check out libgit2/rugged. |
Trying to do things like
Grit::Repo.new("/path/to/nonbare/repo").git.commit({}, '-a', '-m', 'hello', '-author', 'fred')
fails silently. I had to fire up git to try and work out what the problem could be (in this case a mal-formed author parameter)
The text was updated successfully, but these errors were encountered: