use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class SubmoduleUpdateCommandImpl method call.
public void call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameter("submodule");
cmd.addParameter("update");
if (myForce)
cmd.addParameter("--force");
if (myDepth != null) {
cmd.addParameter("--depth=" + myDepth);
}
runCmd(cmd);
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class RevParseCommandImpl method call.
@Override
public String call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameter("rev-parse");
if (myShallowRepository) {
cmd.addParameter("--is-shallow-repository");
}
if (myVerifyParam != null) {
cmd.addParameters("--verify", myVerifyParam);
}
if (ref != null)
cmd.addParameter(ref);
ExecResult r = CommandUtil.runCommand(cmd);
return r.getStdout().trim();
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class SubmoduleSyncCommandImpl method call.
public void call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameter("submodule");
cmd.addParameter("sync");
CommandUtil.runCommand(cmd);
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class UpdateIndexCommandImpl method call.
@Override
public void call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameters("update-index");
if (myQuiet)
cmd.addParameter("-q");
if (myReallyRefresh)
cmd.addParameter("--really-refresh");
runCmd(cmd);
}
use of jetbrains.buildServer.buildTriggers.vcs.git.command.GitCommandLine in project teamcity-git by JetBrains.
the class UpdateRefBatchCommandImpl method call.
public void call() throws VcsException {
GitCommandLine cmd = getCmd();
cmd.addParameter("update-ref");
cmd.addParameter("--stdin");
cmd.addParameter("-z");
byte[] input = myInput.toByteArray();
CommandUtil.runCommand(cmd.stdErrExpected(false), input);
}
Aggregations