mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45:44 +01:00
fix wrong mercurial hook url with mod_proxy
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user