[fix] it was splited by a tab

This commit is contained in:
Laurent Peuch 2018-07-25 19:45:57 +02:00
parent a1e215061e
commit 5d208f1ff0

5
run.py
View file

@ -76,8 +76,9 @@ async def monitor_apps_lists():
print(f">>>>>>>>>>>>>>>>>>>>>>>>>>>>> git ls-remote {url} master")
command = await asyncio.create_subprocess_shell(f"git ls-remote {url} master", stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)
data = await command.stdout.read()
print(f">>>>>>>>>>>>>>>>>>>>>>>>>>>>> {data.decode()}")
return data.decode().strip().split(" ")[0]
commit_sha = data.decode().strip().replace("\t", " ").split(" ")[0]
print(f">>>>>>>>>>>>>>>>>>>>>>>>>>>>> {commit_sha}")
return commit_sha
for app_list_name, url in APPS_LISTS.items():
async with aiohttp.ClientSession() as session: