##// END OF EJS Templates
expand the path if destination is not a directory
Benoit Boissinot -
r2624:46e52bbb default
parent child Browse files
Show More
@@ -209,7 +209,7 b' class ui(object):'
209
209
210 def expandpath(self, loc, default=None):
210 def expandpath(self, loc, default=None):
211 """Return repository location relative to cwd or from [paths]"""
211 """Return repository location relative to cwd or from [paths]"""
212 if "://" in loc or os.path.exists(loc):
212 if "://" in loc or os.path.isdir(loc):
213 return loc
213 return loc
214
214
215 path = self.config("paths", loc)
215 path = self.config("paths", loc)
General Comments 0
You need to be logged in to leave comments. Login now