@pytest.mark.network
def test_git_with_ambiguous_revs(script):
 version_pkg_path = _create_test_package(script)
 package_url = ('git+file://%s@0.1#egg=version_pkg' % version_pkg_path.abspath.replace('\\', '/'))
 script.run('git', 'tag', '0.1', cwd=version_pkg_path)
 result = script.pip('install', '-e', package_url)
 assert ('Could not find a tag or branch' not in result.stdout)
 result.assert_installed('version-pkg', with_files=['.git'])

@ pytest . mark . network def test_git_with_ambiguous_revs ( script ) : version_pkg_path = _create_test_package ( script ) package_url = ( 'git+file://%s@0.1#egg=version_pkg' % version_pkg_path . abspath . replace ( '\\' , '/' ) ) script . run ( 'git' , 'tag' , '0.1' , cwd = version_pkg_path ) result = script . pip ( 'install' , '-e' , package_url ) assert ( 'Could not find a tag or branch' not in result . stdout ) result . assert_installed ( 'version-pkg' , with_files = [ '.git' ] )
test git with two "names" pointing to the same commit .