Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,17 @@ cd "$(dirname "$0")"
echo "==> Cloning repos..."
for url in "${REPOS[@]}"; do
dir=$(basename "$url")
if [ ! -d "$dir" ]; then
# Several siblings are tracked as gitlinks (submodule-style pointers) but
# there is no .gitmodules, so a fresh checkout leaves them as EMPTY
# placeholder directories. A plain `[ ! -d ]` guard would see the dir and
# skip it, leaving an empty (broken) uv workspace member. Detect a populated
# repo by its .git entry instead, and clone into the empty placeholder.
if [ -e "$dir/.git" ]; then
echo " $dir already present, skipping"
else
echo " cloning $dir"
rm -rf "$dir" # drop the empty gitlink placeholder, if any
git clone "$url"
else
echo " $dir already present, skipping"
fi
done

Expand Down
Loading