Skip to content

Commit

Permalink
defer svn access to github error to actual checkout point, this will …
Browse files Browse the repository at this point in the history
…allow updates from no longer supported repos
  • Loading branch information
jedwards4b committed Jan 1, 2024
1 parent 876b344 commit 2c4174b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manic/repository_svn.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ def __init__(self, component_name, repo, ignore_ancestry=False):
Parse repo (a <repo> XML element).
"""
Repository.__init__(self, component_name, repo)
if 'github.com' in self._url:
msg = "SVN access to github.com is no longer supported"
fatal_error(msg)
self._ignore_ancestry = ignore_ancestry
if self._url.endswith('/'):
# there is already a '/' separator in the URL; no need to add another
Expand Down Expand Up @@ -77,6 +74,9 @@ def checkout(self, base_dir_path, repo_dir_name, verbosity, recursive): # pylin
"""
repo_dir_path = os.path.join(base_dir_path, repo_dir_name)
if 'github.com' in self._url:
msg = "SVN access to github.com is no longer supported"
fatal_error(msg)
if os.path.exists(repo_dir_path):
cwd = os.getcwd()
os.chdir(repo_dir_path)
Expand Down

0 comments on commit 2c4174b

Please sign in to comment.