Fix output check on git status
This commit is contained in:
parent
49be06d41f
commit
b3c64f0403
@ -98,7 +98,10 @@ def git_status(fpath):
|
|||||||
cmd = ["git", "status", "--porcelain"]
|
cmd = ["git", "status", "--porcelain"]
|
||||||
output = run(cmd, cwd=fpath)
|
output = run(cmd, cwd=fpath)
|
||||||
|
|
||||||
if output is not None:
|
if output:
|
||||||
msg = "warning: git reports uncommitted changes in {}".format(fpath)
|
msg = "warning: git reports uncommitted changes in {}".format(fpath)
|
||||||
log.warning(msg)
|
log.warning(msg)
|
||||||
log.warning(output)
|
log.warning(output)
|
||||||
|
else:
|
||||||
|
msg = "No unstaged changes found in {}".format(INFRA_DIR)
|
||||||
|
log.info(msg)
|
||||||
|
Reference in New Issue
Block a user