mirror of
https://code.forgejo.org/actions/checkout
synced 2025-05-20 06:03:45 +08:00
feat: refactor on sparse-checkout test
This commit is contained in:
parent
a910f4bca0
commit
eea6d0effb
2 changed files with 38 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue