From 98c5f920697fd87d1decb65fa08604393112c3b3 Mon Sep 17 00:00:00 2001 From: jok Date: Fri, 14 Oct 2022 13:39:27 -0700 Subject: [PATCH] wrap the command for submoduleForeach in quotes --- src/git-command-manager.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 699a963..ae9bb34 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -297,7 +297,10 @@ class GitCommandManager { if (recursive) { args.push('--recursive') } + # this is an ugly way to add the quotes around the command + args.push('"') args.push(command) + args.push('"') const output = await this.execGit(args) return output.stdout