Fix when current repository is not a Git repo