CR-IU-410 - add to git with GitFileUtils#addFiles

This commit is contained in:
Michael Golubev
2013-12-02 18:31:56 +01:00
parent bc527b1f89
commit c971784dc9
@@ -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);