Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
Python_Packaging_Authority
pip
提交
4e264664
P
pip
项目概览
镜像
/
Python_Packaging_Authority
/
pip
11 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
pip
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e264664
编写于
5月 28, 2012
作者:
L
lepture
提交者:
fin
6月 13, 2012
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix on git repo. if a repo contains submodules, checkout submodules
上级
ae867db0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
10 addition
and
4 deletion
+10
-4
AUTHORS.txt
AUTHORS.txt
+1
-0
pip/vcs/git.py
pip/vcs/git.py
+9
-4
未找到文件。
AUTHORS.txt
浏览文件 @
4e264664
...
...
@@ -51,3 +51,4 @@ Vinay Sajip
Vitaly Babiy
W Trevor King
Wil Tan
Hsiaoming Yang
pip/vcs/git.py
浏览文件 @
4e264664
...
...
@@ -28,8 +28,8 @@ class Git(VersionControl):
initial_slashes
=
path
[:
-
len
(
path
.
lstrip
(
'/'
))]
newpath
=
initial_slashes
+
url2pathname
(
path
).
replace
(
'
\\
'
,
'/'
).
lstrip
(
'/'
)
url
=
urlunsplit
((
scheme
,
netloc
,
newpath
,
query
,
fragment
))
after_plus
=
scheme
.
find
(
'+'
)
+
1
url
=
scheme
[:
after_plus
]
+
urlunsplit
((
scheme
[
after_plus
:],
netloc
,
newpath
,
query
,
fragment
))
after_plus
=
scheme
.
find
(
'+'
)
+
1
url
=
scheme
[:
after_plus
]
+
urlunsplit
((
scheme
[
after_plus
:],
netloc
,
newpath
,
query
,
fragment
))
super
(
Git
,
self
).
__init__
(
url
,
*
args
,
**
kwargs
)
...
...
@@ -105,6 +105,9 @@ class Git(VersionControl):
if
self
.
check_destination
(
dest
,
url
,
rev_options
,
rev_display
):
logger
.
notify
(
'Cloning %s%s to %s'
%
(
url
,
rev_display
,
display_path
(
dest
)))
call_subprocess
([
self
.
cmd
,
'clone'
,
'-q'
,
url
,
dest
])
#: repo may contain submodules
call_subprocess
([
self
.
cmd
,
'submodule'
,
'init'
],
cwd
=
dest
)
call_subprocess
([
self
.
cmd
,
'submodule'
,
'update'
],
cwd
=
dest
)
if
rev
:
rev_options
=
self
.
check_rev_options
(
rev
,
dest
,
rev_options
)
# Only do a checkout if rev_options differs from HEAD
...
...
@@ -161,8 +164,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'
%
(
egg_project_name
,
branch_revs
[
current_rev
].
replace
(
'origin/'
,
''
))
full_egg_name
=
'%s-%s'
%
(
egg_project_name
,
branch_revs
[
current_rev
].
replace
(
'origin/'
,
''
)
)
else
:
full_egg_name
=
'%s-dev'
%
egg_project_name
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录