This is no longer maintained. Though pygit has some nice checks for instantiating the git object, I suggest using sultan for anything subprocess related, including git commands.
Easy to use git utility for python.
Just instantiate a pygit object with git = PyGit("/path/to/repo/")
and use git as you would normally.
Returns stdout from git as a list.
>>> from pygit import PyGit
>>> git = PyGit("/path/to/repo/")
>>> git("checkout master")
[ "Switched to branch 'master'", "Your branch is up-to-date with 'origin/master'."]
>>> git("describe --tags")
['1.4.0-rev23']
>>> git("tag --contains ex4m9le*c00m1t*h4Sh")
['1.4.0-rev23', 'MY-SECOND-TAG-rev1']
pip install git+git://github.com/mijdavis2/pygit.git
In requirements.txt file:
git+git://github.com/mijdavis2/[email protected]#egg=pygit
MIT © mijdavis2