mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Also print changes in git helper scripts, if any
This commit is contained in:
parent
2d3ef34dce
commit
bb8b2f47d0
@ -13,12 +13,20 @@ check_for_diffs() {
|
|||||||
echo "ATTENTION: $1 hook has changed:"
|
echo "ATTENTION: $1 hook has changed:"
|
||||||
echo "==============================="
|
echo "==============================="
|
||||||
diff "$installed" "$latest"
|
diff "$installed" "$latest"
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check_for_script_update() {
|
||||||
|
fullpath="$git_toplevel/scripts/maint/$1"
|
||||||
|
|
||||||
|
git diff ORIG_HEAD HEAD --exit-code -- "$fullpath"
|
||||||
|
}
|
||||||
|
|
||||||
check_for_diffs "pre-push"
|
check_for_diffs "pre-push"
|
||||||
check_for_diffs "pre-commit"
|
check_for_diffs "pre-commit"
|
||||||
check_for_diffs "post-merge"
|
check_for_diffs "post-merge"
|
||||||
|
|
||||||
|
check_for_script_update "git-merge-forward.sh"
|
||||||
|
check_for_script_update "git-pull-all.sh"
|
||||||
|
check_for_script_update "git-push-all.sh"
|
||||||
|
Loading…
Reference in New Issue
Block a user