Skip to content

Commit 1ba15be

Browse files
authored
Remove redundant git status/diff/log from tag mode allowlist (#1075)
1 parent 9ddce40 commit 1ba15be

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/create-prompt/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ export function buildAllowedToolsString(
5656
"Bash(git add:*)",
5757
"Bash(git commit:*)",
5858
`Bash(${GIT_PUSH_WRAPPER}:*)`,
59-
"Bash(git status:*)",
60-
"Bash(git diff:*)",
61-
"Bash(git log:*)",
6259
"Bash(git rm:*)",
6360
);
6461
}

src/modes/tag/index.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,6 @@ export async function prepareTagMode({
139139
"Bash(git add:*)",
140140
"Bash(git commit:*)",
141141
`Bash(${gitPushWrapper}:*)`,
142-
"Bash(git status:*)",
143-
"Bash(git diff:*)",
144-
"Bash(git log:*)",
145142
"Bash(git rm:*)",
146143
);
147144
} else {

test/create-prompt.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,9 +1017,6 @@ describe("buildAllowedToolsString", () => {
10171017
expect(result).toContain("Bash(git add:*)");
10181018
expect(result).toContain("Bash(git commit:*)");
10191019
expect(result).toContain("scripts/git-push.sh:*)");
1020-
expect(result).toContain("Bash(git status:*)");
1021-
expect(result).toContain("Bash(git diff:*)");
1022-
expect(result).toContain("Bash(git log:*)");
10231020
expect(result).toContain("Bash(git rm:*)");
10241021

10251022
// Comment tool from minimal server should be included

0 commit comments

Comments
 (0)