Only run in a git project
Handle git projects properly