check if repository is git repository