diff options
Diffstat (limited to 'lib/codereview')
-rw-r--r-- | lib/codereview/codereview.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/codereview/codereview.py b/lib/codereview/codereview.py index 47317ad44..62553257b 100644 --- a/lib/codereview/codereview.py +++ b/lib/codereview/codereview.py @@ -1772,7 +1772,7 @@ def gofmt(ui, repo, *pats, **opts): cmd = ["gofmt", "-l"] if not opts["list"]: cmd += ["-w"] - if os.spawnvp(os.P_WAIT, "gofmt", cmd + files) != 0: + if subprocess.call(cmd + files) != 0: raise hg_util.Abort("gofmt did not exit cleanly") except hg_error.Abort, e: raise |