adding check for git repo