feat: refactor on sparse-checkout test

This commit is contained in:
Daniel 2023-05-02 21:08:06 +02:00
parent a910f4bca0
commit eea6d0effb
2 changed files with 38 additions and 42 deletions

View file

@ -1,5 +1,14 @@
#!/bin/bash
# Verify .git folder
if [ ! -d "./sparse-checkout/.git" ]; then
echo "Expected ./sparse-checkout/.git folder to exist"
exit 1
fi
# Verify sparse-checkout basic
cd sparse-checkout
SPARSE=$(git sparse-checkout list)
if [ "$?" != "0" ]; then