##// END OF EJS Templates
canonpath: fix infinite recursion
Matt Mackall -
r25022:10bbdcd8 default
parent child Browse files
Show More
@@ -156,8 +156,10 b' def canonpath(root, cwd, myname, auditor'
156 156 # instead of cwd. Detect that case, and provide a hint to the user.
157 157 hint = None
158 158 try:
159 canonpath(root, root, myname, auditor)
160 hint = _("consider using '--cwd %s'") % os.path.relpath(root, cwd)
159 if cwd != root:
160 canonpath(root, root, myname, auditor)
161 hint = (_("consider using '--cwd %s'")
162 % os.path.relpath(root, cwd))
161 163 except util.Abort:
162 164 pass
163 165
General Comments 0
You need to be logged in to leave comments. Login now