git clone之后,git config

This commit is contained in:
jiangzhongxiang 2019-06-01 18:00:57 +08:00
parent d7f2fe276a
commit 78974b72ee
1 changed files with 3 additions and 2 deletions

View File

@ -103,8 +103,8 @@ public class GameService {
// 执行克隆操作
JSONObject result = ShellUtil.executeAndGetExitStatus(
"cd " + tpiWorkSpace + " && git config user.email educoder@163.com "
+ "&& git config user.name educoder && git clone -o " + remoteName + " --depth=1 " + tpmGitURL,
"cd " + tpiWorkSpace + " && git clone -o " + remoteName + " --depth=1 " + tpmGitURL
+ " && cd " + tpmRepoName + " && git config user.email educoder@163.com && git config user.name educoder",
3);
if (result.getInteger("exitStatus") != 0) {
@ -116,6 +116,7 @@ public class GameService {
// 克隆成功后确保本地版本库名字是与tpi版本库一致的
logger.info("克隆成功repoName: {}", tpmRepoName);
GameHelper.ensurelocalRepoName(tpiWorkSpace, tpiRepoName, tpmRepoName);
}
/**