##// END OF EJS Templates
Detect symlink in given repository path, and ask user if stored path should be were the symlink points
marcink -
r2819:bbaf0b86 beta
parent child Browse files
Show More
@@ -543,7 +543,15 b' class DbManage(object):'
543 retries -= 1
543 retries -= 1
544 return self.config_prompt(test_repo_path, retries)
544 return self.config_prompt(test_repo_path, retries)
545
545
546 return path
546 real_path = os.path.realpath(path)
547
548 if real_path != path:
549 if not ask_ok(('Path looks like a symlink, Rhodecode will store '
550 'given path as %s ? [y/n]') % (real_path)):
551 log.error('Canceled by user')
552 sys.exit(-1)
553
554 return real_path
547
555
548 def create_settings(self, path):
556 def create_settings(self, path):
549
557
General Comments 0
You need to be logged in to leave comments. Login now