Re: Using git from Python
- From
Eric Hanchrow <offby1@blarg.net>
- Date
- May 8, 2008, 03:54 UTC
- Message-ID
- <87lk2l4fj5.fsf@offby1.atm01.sea.blarg.net>
- In-Reply-To
- <alpine.DEB.1.10.0805071612510.26718@sf.creativecommons.org>
>>>>> "Asheesh" == Asheesh Laroia <asheesh@asheesh.org> writes:
Asheesh> On #git, I was advised to simply call the git command
Asheesh> suite. That's what I'd do ... (I wonder if it was me who so advised you :-)
Asheesh> That's fine ... but since I figured others may have done
Asheesh> this alsoAs far as I can tell, there is exactly no downside to simply forking a
subprocess. Why are you trying to avoid that?
Asheesh> raises Exceptions when the git commands fail for some
Asheesh> reason.If Popen doesn't already raise an exception when the child process fails, then it's surely a simple matter to check the exit code, and raise the exception yourself.
--
I write [from 5 AM to 7 AM] to discover what I think. After
all, the bars aren't open that early.
-- Daniel Boorstin, former Librarian of Congress