3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-17 23:44:46 +00:00

fixed bug with pattern matching.

This commit is contained in:
Tonye Jack 2022-08-25 22:12:38 -06:00
parent 646144ddf8
commit b1929916fa

View file

@ -21,7 +21,7 @@ function get_diff() {
base="$1"
sha="$2"
filter="$3"
pattern_file="$4"
pattern_file="${4:-}"
while IFS='' read -r sub; do
sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"
@ -50,7 +50,7 @@ function get_diff() {
function get_renames() {
base="$1"
sha="$2"
pattern_file="$3"
pattern_file="${3:-}"
while IFS='' read -r sub; do
sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"