From: Eric Hanchrow Date: Thu, 08 May 2008 03:54:06 GMT Subject: Re: Using git from Python Message-ID: <87lk2l4fj5.fsf@offby1.atm01.sea.blarg.net> In-Reply-To: >>>>> "Asheesh" == Asheesh Laroia 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 also As 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