1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Also use the project name for editable Git URLs when using freeze.

This commit is contained in:
Jannis Leidel 2011-01-23 13:02:04 +01:00
parent 1e22c0adb5
commit f3cc57519d

View file

@ -166,10 +166,10 @@ class Git(VersionControl):
elif (current_rev in branch_revs and
branch_revs[current_rev] != 'origin/master'):
# It's the head of a branch
full_egg_name = '%s-%s' % (dist.egg_name(),
full_egg_name = '%s-%s' % (egg_project_name,
branch_revs[current_rev].replace('origin/', ''))
else:
full_egg_name = '%s-dev' % dist.egg_name()
full_egg_name = '%s-dev' % egg_project_name
return '%s@%s#egg=%s' % (repo, current_rev, full_egg_name)