added some changes to get this to work - needs updates for the git lib as well as django 1.5