Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/__test__/verify-fetch-filter.sh
blob: 4fc9d9e38103de5dc5db27a001a1193f36a2e95e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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