Wait for git process to finish
Bump to 1.2.2
This commit is contained in:
@ -62,9 +62,11 @@ class Patcher:
|
||||
if shutil.which("git"):
|
||||
if not self._patch_path.exists() or not self._patch_path.is_dir() \
|
||||
or not self._patch_path.joinpath(".git").exists():
|
||||
await asyncio.create_subprocess_exec("git", "clone", self._patch_url, str(self._patch_path))
|
||||
proc = await asyncio.create_subprocess_exec("git", "clone", self._patch_url, str(self._patch_path))
|
||||
await proc.wait()
|
||||
else:
|
||||
await asyncio.create_subprocess_exec("git", "pull", cwd=str(self._patch_path))
|
||||
proc = await asyncio.create_subprocess_exec("git", "pull", cwd=str(self._patch_path))
|
||||
await proc.wait()
|
||||
else:
|
||||
archive = await self._get_git_archive()
|
||||
if not archive:
|
||||
|
||||
Reference in New Issue
Block a user