From 040e91a193f31cee3ec78fbbafc4b9cdab90c302 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Sat, 5 Mar 2022 15:28:05 +0100 Subject: [PATCH] gocd: Fix subprocess.run usage --- gocd/notify-obs_rsync.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gocd/notify-obs_rsync.py b/gocd/notify-obs_rsync.py index a52bd80c..5bced085 100755 --- a/gocd/notify-obs_rsync.py +++ b/gocd/notify-obs_rsync.py @@ -61,7 +61,7 @@ if __name__ == '__main__': # make sure we avoid a race between gocd polling the notifications repo and # scheduling a notify job because of other changes. In that case gocd schedules # a new job on outdated notifications repo and we can't push - subprocess.run(f'cd {args.to} && git pull') + subprocess.run(f'cd {args.to} && git pull', shell=True, check=True) interesting_repos = dict() list = openqa.openqa_request('GET', 'obs_rsync')