Fix undefined method `git_repository'