[PATCH lkp-tests] setup/simply-ci: fix git clone error

[how] before: git clone https://$GIT_SERVER/gitee.com/wu_fengguang/compass-ci.git after: git clone https://gitee.com/wu_fengguang/compass-ci.git [why] refer code: git_ci(): ... if [ -n "$GIT_SERVER" ]; then cat >> /etc/gitconfig <<-EOF [url "git://$GIT_SERVER/gitee.com"] insteadOf=https://gitee.com ... if $GIT_SERVER exists, "http://gitee.com" will be instead of "git://$GIT_SERVER/gitee.com", so the old code is wrong. Signed-off-by: Liu Yinsi <liuyinsi@163.com> --- setup/simplify-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/simplify-ci b/setup/simplify-ci index 076c357d9..c8f8a5a53 100755 --- a/setup/simplify-ci +++ b/setup/simplify-ci @@ -14,7 +14,7 @@ git_ci() EOF fi - git clone https://$GIT_SERVER/gitee.com/wu_fengguang/compass-ci.git /c/compass-ci + git clone https://gitee.com/wu_fengguang/compass-ci.git /c/compass-ci } dev_env() -- 2.23.0

@@ -14,7 +14,7 @@ git_ci() EOF fi
- git clone https://$GIT_SERVER/gitee.com/wu_fengguang/compass-ci.git /c/compass-ci + git clone https://gitee.com/wu_fengguang/compass-ci.git /c/compass-ci
you can use: git clone -C /c https://gitee.com/wu_fengguang/compass-ci.git it will colne the repo in dir /c and keep the repo name. Thanks, Luan Shengde
}
dev_env() -- 2.23.0

On Mon, Feb 22, 2021 at 11:12:24AM +0800, Luan Shengde wrote:
@@ -14,7 +14,7 @@ git_ci() EOF fi
- git clone https://$GIT_SERVER/gitee.com/wu_fengguang/compass-ci.git /c/compass-ci + git clone https://gitee.com/wu_fengguang/compass-ci.git /c/compass-ci
you can use: git clone -C /c https://gitee.com/wu_fengguang/compass-ci.git it will colne the repo in dir /c and keep the repo name.
the old also ok. Thanks, Yinsi
Thanks, Luan Shengde
}
dev_env() -- 2.23.0
participants (2)
-
Liu Yinsi
-
Luan Shengde