Enabled the removal of a trailing slash when sourcing examples from examples.json

pull/8261/head
Cruz Monrreal II 2018-09-26 14:21:10 -05:00
parent b3fe04f68a
commit f5e6f16307
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ def deploy_repos(config, examples):
print("\nDeploying example repos....\n")
for example in config['examples']:
for repo_info in get_repo_list(example):
name = basename(repo_info['repo'])
name = basename(repo_info['repo'].strip('/'))
if name in examples:
if os.path.exists(name):
os.chdir(name)