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:
parent
1e22c0adb5
commit
f3cc57519d
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue