diff mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 900:b83484e825b7

TW-36401 ability to disable custom clone dir even if it specified in VCS root
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Thu, 13 Nov 2014 15:24:26 +0100
parents e7b716719044
children ef9d14cbca44
line wrap: on
line diff
--- a/mercurial-server/resources/buildServerResources/mercurialSettings.jsp	Thu Nov 13 14:44:52 2014 +0100
+++ b/mercurial-server/resources/buildServerResources/mercurialSettings.jsp	Thu Nov 13 15:24:26 2014 +0100
@@ -28,7 +28,9 @@
 }
 </script>
 <c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/>
-<c:set var="showCustomClonePath" value="<%= TeamCityProperties.getBoolean(Constants.SHOW_CUSTOM_CLONE_PATH) || !StringUtil.isEmpty(propertiesBean.getProperties().get(Constants.SERVER_CLONE_PATH_PROP))%>"/>
+<c:set var="showCustomClonePath" value="<%= TeamCityProperties.getBooleanOrTrue(Constants.CUSTOM_CLONE_PATH_ENABLED) &&
+                                            (TeamCityProperties.getBoolean(Constants.SHOW_CUSTOM_CLONE_PATH)
+                                            || !StringUtil.isEmpty(propertiesBean.getProperties().get(Constants.SERVER_CLONE_PATH_PROP))) %>"/>
 <table class="runnerFormTable">
 
   <l:settingsGroup title="General Settings">