mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 16:37:23 +00:00
deploy-zulip-from-git: Cleanup git_repo_url computation.
Now we assume the main GitHub zulip.git if a repo isn't specified.
This commit is contained in:
@@ -12,10 +12,10 @@ LOCAL_GIT_CACHE_DIR = '/srv/zulip.git'
|
|||||||
|
|
||||||
ZULIP_COM = config_file.get('machine', 'deploy_type') in ['zulip.com-prod',
|
ZULIP_COM = config_file.get('machine', 'deploy_type') in ['zulip.com-prod',
|
||||||
'zulip.com-staging']
|
'zulip.com-staging']
|
||||||
if ZULIP_COM:
|
try:
|
||||||
git_url = "git@git.zulip.net:eng/zulip.git"
|
|
||||||
else:
|
|
||||||
git_url = config_file.get('deployment', 'git_repo_url')
|
git_url = config_file.get('deployment', 'git_repo_url')
|
||||||
|
except (configparser.NoSectionError, configparser.NoOptionError):
|
||||||
|
git_url = "https://github.com/zulip/zulip.git"
|
||||||
|
|
||||||
os.environ["PYTHONUNBUFFERED"] = "y"
|
os.environ["PYTHONUNBUFFERED"] = "y"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user