# HG changeset patch # User Marcin Kuzminski # Date 1349980297 -7200 # Node ID ce8572f45c859c3641a9edb2126732fd81d41fca # Parent c6f16271b60cc94b4e4d8f32f7e17b01572c6ac5 use normpath when comparing paths used to determine if directory is a symlink, it's a part of pull-request #77 diff -r c6f16271b60c -r ce8572f45c85 rhodecode/lib/db_manage.py --- 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')