mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
Fixed --repository option when handling relative path
When specifying relative path to --repository option, 'log' and 'diff' were unable to find the files specified. Here's the fix.
This commit is contained in:
parent
908f12f343
commit
564f653a74
@ -634,7 +634,7 @@ class localrepository:
|
||||
if not create and not os.path.isdir(self.path):
|
||||
raise RepoError("repository %s not found" % self.path)
|
||||
|
||||
self.root = path
|
||||
self.root = os.path.abspath(path)
|
||||
self.ui = ui
|
||||
|
||||
if create:
|
||||
|
Loading…
Reference in New Issue
Block a user