Skip to content

Commit fe2bd09

Browse files
bump
1 parent 69223ca commit fe2bd09

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const gptCommit = async () => {
4242

4343
const messages = [
4444
{role: "system", content: "You are a helpful assistant."},
45-
{role: "user", content: `Generate a Git commit message based on the following summary: ${gitSummary}`}
45+
{role: "user", content: `Generate a Git commit message based on the following summary. That do not wrap in single or double quarts.: ${gitSummary}`}
4646
];
4747

4848
const parameters = {
@@ -63,7 +63,7 @@ const gptCommit = async () => {
6363
});
6464

6565
if (confirm.value) {
66-
execSync(`git commit -m "${message}"`);
66+
execSync(`git commit -m "${message.replace(/"/g, '\\"')}"`);
6767
console.log("Committed with the suggested message.");
6868
} else {
6969
console.log("Commit canceled.");

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@laststance/git-gpt-commit",
3-
"version": "0.7.0-beta05",
3+
"version": "0.7.0-beta06",
44
"description": "An AI-powered Git extension that generates commit messages using OpenAI's GPT-3, streamlining the commit process and improving developer productivity.",
55
"main": "index.js",
66
"type": "module",

0 commit comments

Comments
 (0)