You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
445 B
Bash
17 lines
445 B
Bash
#!/bin/bash
|
|
|
|
# Verify .git folder
|
|
if [ ! -d "./fetch-filter/.git" ]; then
|
|
echo "Expected ./fetch-filter/.git folder to exist"
|
|
exit 1
|
|
fi
|
|
|
|
# Verify .git/config contains partialclonefilter
|
|
|
|
CLONE_FILTER=$(git -C fetch-filter config --local --get remote.origin.partialclonefilter)
|
|
|
|
if [ "$CLONE_FILTER" != "blob:none" ]; then
|
|
echo "Expected ./fetch-filter/.git/config to have 'remote.origin.partialclonefilter' set to 'blob:none'"
|
|
exit 1
|
|
fi
|