login
Header Space

 
 

Re: Using git from Python

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, May 7, 2008 - 11:54 pm

>>>>> "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 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Using git from Python, Eric Hanchrow, (Wed May 7, 11:54 pm)
Re: Using git from Python, David Aguilar, (Thu May 8, 12:23 am)
speck-geostationary