roundabout,
created on Monday, 29 April 2024, 06:53:52 (1714373632),
received on Wednesday, 31 July 2024, 06:54:47 (1722408887)
Author identity: vlad <vlad.muntoiu@gmail.com>
615d1a0fc9204c56e3908c3c3364881c36f27561
celery_tasks.py
@@ -93,7 +93,7 @@ def copy_site(route):
repo = db.session.get(Repo, route) server_repo_location = os.path.join(config.REPOS_PATH, route.lstrip("/")) subdomain = repo.owner.username subpath = repo.name if repo.has_site != 2 else "."subpath = repo.name if repo.has_site != 2 else ""site_location = os.path.join(config.SITE_PATH, subdomain, subpath) # Get the branch to be used for the site; if it somehow doesn't exist, use the default branch. branch = repo.site_branch or repo.default_branch