final EnvVars environment = GitUtils.getPollEnvironment(project, workspace, launcher, listener, isPollSlaves());
IGitAPI git = new GitAPI(gitExe, workspace, listener, environment);
if (!isPollSlaves()) {
launcher = new Launcher.LocalLauncher(null);
workspace = getLocalWorkspace(project, listener);
if (!workingDirectory.exists() && isPollSlaves()) {
return PollingResult.BUILD_NOW;
final EnvVars environment = GitUtils.getPollEnvironment(project, workspace, launcher, listener, isPollSlaves());
final List<RemoteConfig> paramRepos = getParamExpandedRepos(lastBuild);