mirror of
https://github.com/mnauw/git-remote-hg.git
synced 2026-05-07 10:17:10 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user