From bd9c81d2189f006f9721ecc6b5766c23f319df3b Mon Sep 17 00:00:00 2001 From: Arshan Date: Sun, 31 Mar 2024 11:51:38 -0700 Subject: [PATCH] fix bug! --- extension.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/extension.js b/extension.js index 26bc89b..a1aa820 100644 --- a/extension.js +++ b/extension.js @@ -27,12 +27,10 @@ function activate(context) { '" is not a valid event branch.' ); } else { - var commitMessage = 'Update at "' + new Date().toLocaleString() + '"'; - - runCommand("git add -A", () => { - runCommand("git commit -m '" + commitMessage + "'", () => { + var escapedCommitMessage = '"Deploy at \\"' + new Date().toLocaleString() + '\\""'; + var gitAddAndCommitCommand = 'git commit -a -m ' + escapedCommitMessage; + runCommand(gitAddAndCommitCommand, () => { vscode.commands.executeCommand("wpilibcore.deployCode"); - }); }); } }); @@ -40,7 +38,7 @@ function activate(context) { ); } // @ts-ignore -exports.activate = activate; +//exports.activate = activate; function deactivate() {}