Use git directory where necessary