Mercurial > kallithea
changeset 2918:ce8572f45c85 beta
use normpath when comparing paths used to determine if directory is a symlink, it's a part of pull-request #77
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 11 Oct 2012 20:31:37 +0200 |
parents | c6f16271b60c |
children | 29630805893d |
files | rhodecode/lib/db_manage.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/db_manage.py Thu Oct 11 20:23:37 2012 +0200 +++ b/rhodecode/lib/db_manage.py Thu Oct 11 20:31:37 2012 +0200 @@ -543,9 +543,9 @@ retries -= 1 return self.config_prompt(test_repo_path, retries) - real_path = os.path.realpath(path) + real_path = os.path.normpath(os.path.realpath(path)) - if real_path != path: + if real_path != os.path.normpath(path): if not ask_ok(('Path looks like a symlink, Rhodecode will store ' 'given path as %s ? [y/n]') % (real_path)): log.error('Canceled by user')