Update git.py so its forced to take path

Sometimes def git() fails while getting a path but the path is seen by other means (i.e. the path is seen on the view but not on the template so error 'e' is raised) this forces the program to take the path. This is tested on git only but it surely get the path