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:
parent
646144ddf8
commit
b1929916fa
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ function get_diff() {
|
||||||
base="$1"
|
base="$1"
|
||||||
sha="$2"
|
sha="$2"
|
||||||
filter="$3"
|
filter="$3"
|
||||||
pattern_file="$4"
|
pattern_file="${4:-}"
|
||||||
|
|
||||||
while IFS='' read -r sub; do
|
while IFS='' read -r sub; do
|
||||||
sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"
|
sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"
|
||||||
|
@ -50,7 +50,7 @@ function get_diff() {
|
||||||
function get_renames() {
|
function get_renames() {
|
||||||
base="$1"
|
base="$1"
|
||||||
sha="$2"
|
sha="$2"
|
||||||
pattern_file="$3"
|
pattern_file="${3:-}"
|
||||||
|
|
||||||
while IFS='' read -r sub; do
|
while IFS='' read -r sub; do
|
||||||
sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"
|
sub_commit_pre="$(git diff "$base" "$sha" -- "$sub" | grep '^[-]Subproject commit' | awk '{print $3}')"
|
||||||
|
|
Loading…
Reference in a new issue