From d036bf1bd018a2abf56ff20579aa118413e7bd16 Mon Sep 17 00:00:00 2001 From: EeeeKa Date: Mon, 3 Aug 2020 12:07:49 +0500 Subject: [PATCH] Fix --work-tree parameter --- webhook-catcher | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webhook-catcher b/webhook-catcher index 8ab7554..2cf95ad 100755 --- a/webhook-catcher +++ b/webhook-catcher @@ -1,7 +1,7 @@ #!/usr/bin/python3 # -# Webhook-catcher v1.0 +# Webhook-catcher v1.1 # import os @@ -32,7 +32,7 @@ from signal import signal, SIGHUP, SIGTERM from pprint import pprint PROG_NAME = "Webhook-catcher" -PROG_VERSION = "v1.0" +PROG_VERSION = "v1.1" PROG_DESCRIPTION = '\ Simple HTTP-server for processing webhooks from Github or Gogs portals.\n\ \n\ @@ -371,7 +371,7 @@ class WebHookWorker(object): def git_pull(cls, repo): if os.path.isdir(repo['dir']): result = subprocess.run([ - "git", "--git-dir", os.path.join(repo['dir'], '.git'), "pull", + "git", "--git-dir", os.path.join(repo['dir'], '.git'), "--work-tree", repo['dir'], "pull", repo['remote'], repo['branch'], ], stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) else: