verify-fetch-filter.sh 445 B

12345678910111213141516
  1. #!/bin/bash
  2. # Verify .git folder
  3. if [ ! -d "./fetch-filter/.git" ]; then
  4. echo "Expected ./fetch-filter/.git folder to exist"
  5. exit 1
  6. fi
  7. # Verify .git/config contains partialclonefilter
  8. CLONE_FILTER=$(git -C fetch-filter config --local --get remote.origin.partialclonefilter)
  9. if [ "$CLONE_FILTER" != "blob:none" ]; then
  10. echo "Expected ./fetch-filter/.git/config to have 'remote.origin.partialclonefilter' set to 'blob:none'"
  11. exit 1
  12. fi