sethtrain/django-git — pull request #4 by feltnerm (2012-05-24 05:11:08+00:00)
Title: Fixed requirements, path of repository, and added an example.

I had some troubles getting django-git working. I made some changes, and it works great now. Maybe they would be useful for others.

Specifically, I...
...fixed the requirements. It appears that the repositories for the packages in the previous requirements.txt did not exist anymore.
...modified the templates to display the repository path correctly. Originally, the templates (index.html, commit.html, and repo.html) were calling repo.path; a property that simply does not exist. In the current release (0.3.2) it states for [Repo.Base](http://packages.python.org/GitPython/0.3.2/reference.html#module-git.repo.base):

> ‘working_dir’ is the working directory of the git command, wich is the working tree directory if available or the .git directory in case of bare repositories

So, yeah, they use that now.

The example project just displays all the repositories on ~/Projects/ (can be changed in example/settings.py), and works with the changes I've made.