Fixed git errors on directory that doesn't have .git