fix wrong mercurial hook url with mod_proxy

This commit is contained in:
Sebastian Sdorra
2011-10-28 12:47:46 +02:00
parent 744b360fdf
commit bb96e78efb

View File

@@ -108,7 +108,7 @@ public class HgHookManager
{ {
StringBuilder url = new StringBuilder(request.getScheme()); StringBuilder url = new StringBuilder(request.getScheme());
url.append("://localhost:").append(request.getServerPort()); url.append("://localhost:").append(request.getLocalPort());
url.append(request.getContextPath()).append("/hook/hg/"); url.append(request.getContextPath()).append("/hook/hg/");
if (hgHookScript == null) if (hgHookScript == null)
@@ -121,7 +121,8 @@ public class HgHookManager
if (logger.isDebugEnabled()) if (logger.isDebugEnabled())
{ {
logger.debug("write hg hook script to '{}'", hgHookScript); logger.debug("write hg hook script for '{}' to '{}'", url,
hgHookScript);
} }
writeScript(hgHookScript, url.toString()); writeScript(hgHookScript, url.toString());