mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Git hooks: remove support for 0.2.9 directory layout.
We no longer will be pushing or committing things in branches that use src/common or src/or. Resolves ticket 32957.
This commit is contained in:
@@ -63,13 +63,12 @@ do
|
||||
CHECK_FILTER="git diff --name-only --diff-filter=ACMR $range"
|
||||
# Use the appropriate owned tor source list to filter the changed
|
||||
# files
|
||||
if [ -d src/lib ]; then
|
||||
# This is the layout in 0.3.5
|
||||
# Keep these lists consistent:
|
||||
# - OWNED_TOR_C_FILES in Makefile.am
|
||||
# - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
|
||||
# - try_parse in check_cocci_parse.sh
|
||||
CHECK_FILES="$($CHECK_FILTER \
|
||||
# This is the layout in 0.3.5
|
||||
# Keep these lists consistent:
|
||||
# - OWNED_TOR_C_FILES in Makefile.am
|
||||
# - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
|
||||
# - try_parse in check_cocci_parse.sh
|
||||
CHECK_FILES="$($CHECK_FILTER \
|
||||
src/lib/*/*.[ch] \
|
||||
src/core/*/*.[ch] \
|
||||
src/feature/*/*.[ch] \
|
||||
@@ -77,17 +76,7 @@ do
|
||||
src/test/*.[ch] \
|
||||
src/test/*/*.[ch] \
|
||||
src/tools/*.[ch] \
|
||||
)"
|
||||
elif [ -d src/common ]; then
|
||||
# This was the layout before 0.3.5
|
||||
CHECK_FILES="$($CHECK_FILTER \
|
||||
src/common/*/*.[ch] \
|
||||
src/or/*/*.[ch] \
|
||||
src/test/*.[ch] \
|
||||
src/test/*/*.[ch] \
|
||||
src/tools/*.[ch] \
|
||||
)"
|
||||
fi
|
||||
)"
|
||||
|
||||
# We want word splitting here, because file names are space
|
||||
# separated
|
||||
|
||||
Reference in New Issue
Block a user