mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix bug in mercurial hook registration
This commit is contained in:
@@ -430,6 +430,7 @@ public class HgRepositoryHandler
|
|||||||
}
|
}
|
||||||
|
|
||||||
hooks.setParameter(hookName, "python:scmhooks.callback");
|
hooks.setParameter(hookName, "python:scmhooks.callback");
|
||||||
|
write = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return write;
|
return write;
|
||||||
@@ -498,6 +499,11 @@ public class HgRepositoryHandler
|
|||||||
|
|
||||||
if (write)
|
if (write)
|
||||||
{
|
{
|
||||||
|
if (logger.isDebugEnabled())
|
||||||
|
{
|
||||||
|
logger.debug("rewrite hgrc for repository {}", repositoryName);
|
||||||
|
}
|
||||||
|
|
||||||
INIConfigurationWriter writer = new INIConfigurationWriter();
|
INIConfigurationWriter writer = new INIConfigurationWriter();
|
||||||
|
|
||||||
writer.write(c, hgrc);
|
writer.write(c, hgrc);
|
||||||
|
|||||||
Reference in New Issue
Block a user