fixing defaults
authorPavel Sher <pavel.sher@gmail.com>
Tue, 3 Dec 2013 18:38:52 +0000 (19:38 +0100)
committerPavel Sher <pavel.sher@gmail.com>
Tue, 3 Dec 2013 18:38:52 +0000 (19:38 +0100)
git-server/src/jetbrains/buildServer/buildTriggers/vcs/git/GitVcsSupport.java

index c156179225e073c7b4ec31b557911bb958e19663..5c971331f9aeaa28150d496378b5dac5da979041 100755 (executable)
@@ -226,6 +226,9 @@ public class GitVcsSupport extends ServerVcsSupport
     final HashMap<String, String> map = new HashMap<String, String>();
     map.put(Constants.BRANCH_NAME, "refs/heads/master");
     map.put(Constants.IGNORE_KNOWN_HOSTS, "true");
+    map.put(Constants.AGENT_CLEAN_POLICY, AgentCleanPolicy.ON_BRANCH_CHANGE.name());
+    map.put(Constants.AGENT_CLEAN_FILES_POLICY, AgentCleanFilesPolicy.ALL_UNTRACKED.name());
+    map.put(Constants.SUBMODULES_CHECKOUT, SubmodulesCheckoutPolicy.IGNORE.name());
     return map;
   }