mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
CR-IU-410 - add to git with GitFileUtils#addFiles
This commit is contained in:
+2
-4
@@ -35,6 +35,7 @@ import git4idea.commands.*;
|
||||
import git4idea.repo.GitRemote;
|
||||
import git4idea.repo.GitRepository;
|
||||
import git4idea.repo.GitRepositoryManager;
|
||||
import git4idea.util.GitFileUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -351,10 +352,7 @@ public abstract class CloudGitDeploymentRuntime<DC extends CloudDeploymentNameCo
|
||||
|
||||
protected void add() throws ServerRuntimeException {
|
||||
try {
|
||||
GitSimpleHandler handler = new GitSimpleHandler(getProject(), myContentRoot, GitCommand.ADD);
|
||||
handler.setSilent(false);
|
||||
handler.addParameters(".");
|
||||
handler.run();
|
||||
GitFileUtils.addFiles(getProject(), myContentRoot, myContentRoot);
|
||||
}
|
||||
catch (VcsException e) {
|
||||
throw new ServerRuntimeException(e);
|
||||
|
||||
Reference in New Issue
Block a user