use of jetbrains.buildServer.vcs.CheckoutRules in project teamcity-git by JetBrains.
the class AgentVcsSupportTest method stop_use_mirror_if_agent_property_changed_to_false.
public void stop_use_mirror_if_agent_property_changed_to_false() throws Exception {
myVcsSupport.updateSources(myRoot, new CheckoutRules(""), GitVcsSupportTest.VERSION_TEST_HEAD, myCheckoutDir, myBuild, false);
AgentRunningBuild build2 = createRunningBuild(false);
myVcsSupport.updateSources(myRoot, new CheckoutRules(""), GitVcsSupportTest.VERSION_TEST_HEAD, myCheckoutDir, build2, false);
File gitConfigFile = new File(myCheckoutDir, ".git" + File.separator + "config");
String config = FileUtil.loadTextAndClose(new FileReader(gitConfigFile));
assertFalse(config, config.contains("insteadOf"));
}
Aggregations