Still looped because there was not a .git found. Added a path.