From cb8dde7055bbdd6d6798134d138d3c16d9828a1b Mon Sep 17 00:00:00 2001 From: Bel LaPointe Date: Mon, 31 Jan 2022 15:33:20 -0700 Subject: [PATCH] fix --- spike/crawl/gitlab/expand.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spike/crawl/gitlab/expand.sh b/spike/crawl/gitlab/expand.sh index 4551cdd..1ca1e97 100644 --- a/spike/crawl/gitlab/expand.sh +++ b/spike/crawl/gitlab/expand.sh @@ -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