diff --git a/alpa/git.py b/alpa/git.py index 23d1021..b60cd5b 100644 --- a/alpa/git.py +++ b/alpa/git.py @@ -44,9 +44,15 @@ def git_cmd( stderr=asyncio.subprocess.PIPE, cwd=context, ) + stdout = process.stdout.decode() + stderr = process.stderr.decode() + logger.debug( + f"git cmd results: stdout: {stdout}; stderr: {stderr}; " + f"retval: {process.returncode}" + ) return GitCmdResult( - stdout=process.stdout.decode().strip(), - stderr=process.stderr.decode().strip(), + stdout=stdout.strip(), + stderr=stderr.strip(), retval=process.returncode, ) @@ -69,6 +75,10 @@ async def async_git_cmd( cwd=context, ) stdout, stderr = await async_subprocess.communicate() + logger.debug( + f"async git cmd results: stdout: {stdout.decode()}; " + f"stderr: {stderr.decode()}; retval: {async_subprocess.returncode}" + ) return GitCmdResult( stdout=stdout.decode().strip(), stderr=stderr.decode().strip(),