Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Please ADD ALL Changes to the UNRELEASED SECTION and not a specific release
- Replaced raw echo with output helpers (die/info/success) in git/clean-all
- check: replaced raw echo-based output with standard die, info, and success helpers
- GEOIP - Updated GEOIP DB from MaxMind (2026-07-08)
- git fetch: skip resetting core.hookspath for whitelisted repositories (e.g. funfair-treasury-reporting)
### Deprecated
### Removed
- db/sqlcompare script deleted — no longer in use
Expand Down
19 changes: 18 additions & 1 deletion git/fetch
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ info() {
printf '\n\033[32m→\033[0m %s\n' "$*"
}

HOOKSPATH_RESET_WHITELIST_SKIP="funfair-treasury-reporting"

is_hookspath_reset_skipped() {
repo_name=$(basename "$1")
for skipped in $HOOKSPATH_RESET_WHITELIST_SKIP; do
if [ "$repo_name" = "$skipped" ]; then
return 0
fi
done
return 1
}

SWITCH_TO_MAIN=0

for arg in "$@"; do
Expand All @@ -31,7 +43,12 @@ do
CURRENT_DIR=$line

info "Retrieving ${CURRENT_DIR}..."
git -C "$CURRENT_DIR" config --local --unset core.hookspath 2>/dev/null || true
if is_hookspath_reset_skipped "$CURRENT_DIR"
then
info "Skipping core.hookspath reset for ${CURRENT_DIR} (whitelisted)."
else
git -C "$CURRENT_DIR" config --local --unset core.hookspath 2>/dev/null || true
fi
git -C "$CURRENT_DIR" remote get-url origin 2>&1 || die "Could not determine origin for ${CURRENT_DIR}"
git -C "$CURRENT_DIR" fetch --prune --prune-tags 2>&1 || die "Could not fetch ${CURRENT_DIR}"
git -C "$CURRENT_DIR" remote update origin --prune 2>&1 || die "Could not update remote refs for ${CURRENT_DIR}"
Expand Down
Loading