Skip to content

Commit 53a52c6

Browse files
committed
fix: Diff issues were due to non remote repositories, support local changes by defulating to
1 parent f1fca9b commit 53a52c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/security/analyze.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ You will now begin executing the plan. The following are your precise instructio
110110
* If the above command fails, producing a fatal error: then proceed to step 1b.
111111
112112
1a. **To define the audit scope in a git repository**
113-
* You **MUST** run the following exact commands. The first command provides a merge base **commit ID**. The second command uses that **commit ID** to generate a list of changed files.
114-
1. `git merge-base HEAD origin/HEAD`
115-
2. `git diff {COMMIT ID}`.
113+
* You **MUST** run the exact command: `git diff --merge-base origin/HEAD`.
114+
* If this command fails and does not produce a changelist, try using this exact command: `git diff`.
115+
116116
* This is your only method for determining the changed files. Do not use any other commands for this purpose.
117117
* Once the command is executed and you have the list of changed files, you will mark this task as complete.
118118
@@ -129,4 +129,4 @@ You will now begin executing the plan. The following are your precise instructio
129129
130130
After completing these two initial tasks, continue executing the dynamically generated plan according to your **Core Operational Loop**.
131131
132-
Proceed with the Initial Planning Phase now."""
132+
Proceed with the Initial Planning Phase now."""

0 commit comments

Comments
 (0)