git-hg-helper: use an absolute path in sharedpath to refer to shared repo

... as some Mercurial commands are otherwise confused, e.g. thg.
This commit is contained in:
Mark Nauwelaerts
2016-08-20 11:02:26 +02:00
parent 628c45a4a9
commit 9528e757d3

View File

@@ -161,7 +161,8 @@ class GitHgRepo:
continue
else:
# make sure the shared path is always up-to-date
util.writefile(os.path.join(local_hg, 'sharedpath'), hg_path)
util.writefile(os.path.join(local_hg, 'sharedpath'),
os.path.abspath(hg_path))
self.hg_repos[r] = os.path.join(local_path)
log('%s determined hg_repos %s', self.identity(), self.hg_repos)