Fix output check on git status

This commit is contained in:
Luke Murphy 2020-04-11 23:19:00 +02:00
parent 49be06d41f
commit b3c64f0403
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 4 additions and 1 deletions

View File

@ -98,7 +98,10 @@ def git_status(fpath):
cmd = ["git", "status", "--porcelain"]
output = run(cmd, cwd=fpath)
if output is not None:
if output:
msg = "warning: git reports uncommitted changes in {}".format(fpath)
log.warning(msg)
log.warning(output)
else:
msg = "No unstaged changes found in {}".format(INFRA_DIR)
log.info(msg)