mirror of https://github.com/Ruslan-Isaev/modules
Update gitrepo.py
parent
405ba4c240
commit
c3d5e032e1
|
@ -9,8 +9,8 @@ from .. import loader, utils
|
||||||
async def run_subprocess(command):
|
async def run_subprocess(command):
|
||||||
process = await asyncio.create_subprocess_exec(
|
process = await asyncio.create_subprocess_exec(
|
||||||
*command,
|
*command,
|
||||||
stdout=asyncio.subprocess.DEVNULL,
|
stdout=asyncio.subprocess.PIPE,
|
||||||
stderr=asyncio.subprocess.DEVNULL
|
stderr=asyncio.subprocess.PIPE
|
||||||
)
|
)
|
||||||
stdout, stderr = await process.communicate()
|
stdout, stderr = await process.communicate()
|
||||||
return process.returncode, stdout.decode(), stderr.decode()
|
return process.returncode, stdout.decode(), stderr.decode()
|
||||||
|
|
Loading…
Reference in New Issue