修改removeTpmRemoteUrl日志打印判断

This commit is contained in:
郑明仁 2019-09-16 11:14:51 +08:00
parent fb7eab9d84
commit c255589421
1 changed files with 1 additions and 1 deletions

View File

@ -781,7 +781,7 @@ public class GameService {
String cmd = "cd " + tpiRepoPath + " && git remote rm remote_origin && git branch --set-upstream-to=origin/master master";
JSONObject result = ShellUtil.executeAndGetExitStatus(cmd, 1);
if (result.getInteger("exitStatus") != 0) {
if (!result.getString("out").contains("remove")) {
if (!result.getString("out").contains("upstream")) {
logger.error("删除本地git项目remote remote_origin url config失败tpiRepoPath: " + tpiRepoPath + " e: " + result);
}
}