mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
Use "real paths" instead of absolute paths
See issue #82 for details: https://bitbucket.org/sdorra/scm-manager/issues/82/symbolic-link-in-hg-repository-path
This commit is contained in:
@@ -455,10 +455,6 @@ public class HgHookCallbackServlet extends HttpServlet
|
||||
String path = request.getParameter(PARAM_REPOSITORYPATH);
|
||||
|
||||
if (Util.isNotEmpty(path)) {
|
||||
/*
|
||||
* use canonical path to fix symbolic links
|
||||
* https://bitbucket.org/sdorra/scm-manager/issue/82/symbolic-link-in-hg-repository-path
|
||||
*/
|
||||
id = repositoryDAO.getIdForDirectory(new File(path));
|
||||
}
|
||||
else if (logger.isWarnEnabled())
|
||||
|
||||
Reference in New Issue
Block a user