Skip to content

Commit

Permalink
erepo: add comment explaining that old relative paths are restored (i…
Browse files Browse the repository at this point in the history
  • Loading branch information
tizoc committed Feb 26, 2020
1 parent 07e28c2 commit 565e4a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dvc/external_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ def _fix_upstream(self):
src_repo.close()

def _fix_local_remote(self, src_repo, remote_name):
# If a remote URL is relative to the source repo,
# it will have changed upon config load and made
# relative to this new repo. Restore the old one here.
new_remote = self.config["remote"][remote_name]
old_remote = src_repo.config["remote"][remote_name]
if new_remote["url"] != old_remote["url"]:
Expand Down

0 comments on commit 565e4a5

Please sign in to comment.