Skip to content

Commit c825703

Browse files
committed
proper git diff
1 parent b759c0e commit c825703

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/trigger-workflows-for-all-modified.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ steps:
171171
172172
get_modified_files_for_commit_regex() {
173173
if [[ "$SEARCH_MODE" == "grep" ]]; then
174-
FILES_MODIFIED=$(git diff --name-only HEAD HEAD^@ | grep $FINAL_GREP_FLAGS $1)
174+
FILES_MODIFIED=$(git diff --name-only HEAD^@ | grep $FINAL_GREP_FLAGS $1)
175175
else
176-
FILES_MODIFIED=$(git diff --name-only HEAD HEAD^@ | perl -nle "print if m{$1}")
176+
FILES_MODIFIED=$(git diff --name-only HEAD^@ | perl -nle "print if m{$1}")
177177
fi
178178
}
179179

0 commit comments

Comments
 (0)