check git repository path exists