Updated .gitignore
Updated git2r.c

* Changed code to work with the path to a git repository and not an
  external pointer to a git_repository.