From 22570ce8d31c9981458a0dc4b3eb5096b4063068 Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 4 Oct 2023 08:37:41 -0400 Subject: [PATCH] fix git command with c option --- .../src/spiffworkflow_backend/services/git_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py index 6aa5584d..92798025 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py @@ -160,7 +160,7 @@ class GitService: command_to_run = command if prepend_with_git: if context_directory is not None: - command_to_run = ["-c", context_directory] + command_to_run + command_to_run = ["-C", context_directory] + command_to_run command_to_run = ["git"] + command_to_run # this is fine since we pass the commands directly