|
|
@@ -36,7 +36,7 @@ public class GitAccountService { |
|
|
|
logger.debug("获取git凭证信息: {}", out); |
|
|
|
if (StringUtils.isEmpty(out) || !out.contains(username) || !out.contains(password)) { |
|
|
|
String setCmd = "git config --global user.email educoder@163.com" |
|
|
|
+ " && git config --global user.name wangwei10061\n" + " && git config --global credential.helper store" |
|
|
|
+ " && git config --global user.name wangwei10061" + " && git config --global credential.helper store" |
|
|
|
+ " && echo -e 'protocol=" + protocol + "\nhost=" + gitIP + "\nusername=" + username + "\npassword=" |
|
|
|
+ password + "' | git credential approve"; |
|
|
|
setGitCredential(setCmd, gitIP); |
|
|
|