##// END OF EJS Templates
Only hg repositories override [paths], not simple directories (fixes issue510)
Thomas Arendsen Hein -
r4216:76d541c6 default
parent child Browse files
Show More
@@ -362,7 +362,7 b' class ui(object):'
362
362
363 def expandpath(self, loc, default=None):
363 def expandpath(self, loc, default=None):
364 """Return repository location relative to cwd or from [paths]"""
364 """Return repository location relative to cwd or from [paths]"""
365 if "://" in loc or os.path.isdir(loc):
365 if "://" in loc or os.path.isdir(os.path.join(loc, '.hg')):
366 return loc
366 return loc
367
367
368 path = self.config("paths", loc)
368 path = self.config("paths", loc)
General Comments 0
You need to be logged in to leave comments. Login now