Skip to content

Commit

Permalink
Merge pull request #210 from jedwards4b/defer_svn_access_error
Browse files Browse the repository at this point in the history
defer svn access to github error to actual checkout point, this will …
jedwards4b authored Jan 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 876b344 + 2c4174b commit f545b7b
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
@@ -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
@@ -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)

0 comments on commit f545b7b

Please sign in to comment.