чистка лишних импортов.и фикс бага с сохранением тестов
This commit is contained in:
@@ -33,22 +33,22 @@ public class DownloadRepositoryPass extends ProcessPass {
|
||||
Vector<String> scriptLines = new Vector<>();
|
||||
File loadedFile = Paths.get(dst.getAbsolutePath(), CommonConstants.LOADED).toFile();
|
||||
boolean pull = loadedFile.exists();
|
||||
if (pull){
|
||||
if (pull) {
|
||||
System.out.println("PULL");
|
||||
scriptLines.add("cd " + dst.getAbsolutePath());
|
||||
scriptLines.add("git pull");
|
||||
}else {
|
||||
} else {
|
||||
Utils.CleanDirectory(dst);
|
||||
System.out.println("CLONE");
|
||||
scriptLines.add("cd " + Utils_.DQuotes(Global.RepoDirectory.getAbsolutePath()));
|
||||
scriptLines.add("git clone " + Utils_.DQuotes(url)+" "+Utils_.DQuotes(dst.getAbsolutePath()));
|
||||
scriptLines.add("git clone " + Utils_.DQuotes(url) + " " + Utils_.DQuotes(dst.getAbsolutePath()));
|
||||
}
|
||||
if (hasSubmodules()) {
|
||||
scriptLines.add("cd " + Utils_.DQuotes(dst));
|
||||
scriptLines.add("GIT_SSL_NO_VERIFY=true git submodule update --init");
|
||||
}
|
||||
PerformScript(String.join("\n", scriptLines));
|
||||
if (!pull){
|
||||
if (!pull) {
|
||||
FileUtils.write(loadedFile, "");
|
||||
}
|
||||
ShowProgress(1, 1, true);
|
||||
|
||||
Reference in New Issue
Block a user