mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-23 20:03:31 +01:00
Merge branch 'tor-github/pr/1683'
This commit is contained in:
commit
aba31e2187
@ -17,8 +17,9 @@ if [ $# -eq 0 ]; then
|
||||
# When called in pre-commit, check the files modified in this commit
|
||||
CHECK_FILTER="git diff --cached --name-only --diff-filter=ACMR"
|
||||
# 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
|
||||
|
||||
# This is the layout in 0.3.5 and later.
|
||||
|
||||
# Keep these lists consistent:
|
||||
# - OWNED_TOR_C_FILES in Makefile.am
|
||||
# - CHECK_FILES in pre-commit.git-hook and pre-push.git-hook
|
||||
@ -32,16 +33,6 @@ if [ $# -eq 0 ]; then
|
||||
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
|
||||
else
|
||||
# When called in pre-push, concatenate the argument array
|
||||
# Fails on special characters in file names
|
||||
|
@ -63,7 +63,6 @@ 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
|
||||
@ -78,16 +77,6 @@ do
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user