Skip to content

Commit da30457

Browse files
authored
hg: add check=True to hgrev subprocess run (#581)
1 parent 59d912c commit da30457

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

salt/hg/files/hg/src/hgrev.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ def __call__(self, env, response):
4343

4444
try:
4545
result = subprocess.run(
46-
command, cwd=hg_repo, capture_output=True, text=True, shell=False
46+
command,
47+
cwd=hg_repo,
48+
capture_output=True,
49+
text=True,
50+
shell=False,
51+
check=True
4752
)
4853
except Exception as e:
4954
return self.failed_response(response, detail=str(e))

0 commit comments

Comments
 (0)