Skip to content

Commit

Permalink
fixup! sparse-checkout: optionally turn off cone mode
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Jun 3, 2023
1 parent 771a049 commit 84122d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __test__/verify-sparse-checkout-non-cone-mode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ fi
# Check that all folders from sparse-checkout exists
for pattern in $(cat "$SPARSE_CHECKOUT_FILE")
do
if [ ! -d "$pattern" ]; then
echo "Expected directory '$pattern' to exist"
if [ ! -d "${pattern#/}" ]; then
echo "Expected directory '${pattern#/}' to exist"
exit 1
fi
done
Expand Down

0 comments on commit 84122d7

Please sign in to comment.