Browse Source

Merge commit '50068fdde03db1188d3b405011998f774138c299' into develop

* commit '50068fdde03db1188d3b405011998f774138c299':
  Update repo.sh
  Update repo.sh Fix remote config error in the first time.
tags/1.4.0^2
huanghaiquan 4 years ago
parent
commit
0769c5e4e9
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      build/repo.sh

+ 4
- 1
build/repo.sh View File

@@ -1,4 +1,3 @@

#调用当前脚本目录下 env.sh 脚本,设置环境变量,处理当前传入参数;
if [ ! $ENV_SHELL ]
then
@@ -103,6 +102,10 @@ do
cd $BASE_DIR
done

#首次执行同步更新子模块的远程仓库 origin 的地址会将主项目地址更改,以下操作确保主项目远程仓库地址正确
git config remote.origin.url $REMOTE_ORIGIN_URL
git config remote.origin.pushurl $REMOTE_ORIGIN_URL

#检查是否要跳过子模块更新环节;
if [ $SKIP_SUBMODULES_UPDATE == 1 ]
then


Loading…
Cancel
Save