提交 737cb0dd 编写于 作者: J Jannis Leidel

Fixed #40 - make sure the branch name is correctly looked up when freezing an...

Fixed #40 - make sure the branch name is correctly looked up when freezing an editable packages from a Git repository
上级 85c35563
......@@ -11,6 +11,8 @@ tip
writing them to a file. Use simple redirection (e.g.
``pip freeze > stable-req.txt``) to get a file with requirements.
* Fixed problem of freezing an editable packages from a Git repository.
0.4
---
......
......@@ -2903,6 +2903,7 @@ class Git(VersionControl):
[GIT_CMD, 'branch', '-r'], show_stdout=False, cwd=location)
branch_revs = []
for line in branches.splitlines():
line = line.split('->')[0].strip()
branch = "".join([b for b in line.split() if b != '*'])
rev = call_subprocess(
[GIT_CMD, 'rev-parse', branch], show_stdout=False, cwd=location)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册