Skip to content

Commit

Permalink
Merge pull request #48 from thirota/refactorLaunchCommandIn
Browse files Browse the repository at this point in the history
fix workDir argument. change public to private
  • Loading branch information
ndeloof committed Jan 12, 2014
2 parents f5f1feb + 5e816ba commit f759bca
Showing 1 changed file with 4 additions and 5 deletions.
Expand Up @@ -910,11 +910,6 @@ public String launchCommand(String... args) throws GitException, InterruptedExce
return launchCommand(new ArgumentListBuilder(args));
}

public String launchCommandIn(File workDir, String... args) throws GitException, InterruptedException {
return launchCommandIn(new ArgumentListBuilder(args), workspace);
}


private String launchCommandWithCredentials(ArgumentListBuilder args, File workDir,
StandardCredentials credentials,
@NonNull String url) throws GitException, InterruptedException {
Expand Down Expand Up @@ -1059,6 +1054,10 @@ private File createUnixGitSSH(File key) throws IOException {
return ssh;
}

private String launchCommandIn(File workDir, String... args) throws GitException, InterruptedException {
return launchCommandIn(new ArgumentListBuilder(args), workDir);
}

private String launchCommandIn(ArgumentListBuilder args, File workDir) throws GitException, InterruptedException {
return launchCommandIn(args, workDir, environment);
}
Expand Down

0 comments on commit f759bca

Please sign in to comment.