master
Bel LaPointe 2022-01-31 15:33:20 -07:00
parent 156080a887
commit cb8dde7055
1 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ while [ "$i" -lt "${#trees[@]}" ]; do
gitlab_path="${trees[i]}"
echo gitlab_path=$gitlab_path, i=$i, trees=${#trees[@]}, files=${#files[@]}... >&2
got="$(GITLAB_PATH=$gitlab_path list)"
echo got="$got" >&2
for nested_path in $(echo "$got" | jq -c .[] | grep '"type":"tree"' | jq -r .path | while read -r line; do echo "$line" | base64; done | grep .); do
nested_path="$(echo "$nested_path" | base64 --decode)"
if echo "${trees[@]}" | grep -q "[ ^]$nested_path[ $]"; then
@ -55,7 +56,7 @@ while [ "$i" -lt "${#trees[@]}" ]; do
if echo "${files[@]}" | grep -q "[ ^]$nested_path[ $]"; then
continue
fi
files+=("$nested_path")
files+=("$PROJECT.git/$nested_path")
done
i=$((i+1))
if ((i>5)); then