git clone之后,git config
This commit is contained in:
parent
d7f2fe276a
commit
78974b72ee
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue