Bugfix on 31919; not in any released version of tor.
"$try_parse" "$@"
exitcode=$?
else
+ cd "$top" || exit 1
# This is the layout in 0.3.5
"$try_parse" \
src/lib/*/*.[ch] \
workdir=$(git rev-parse --show-toplevel)
+cd "$workdir" || exit 1
+
remote="$1"
remote_name=$(git remote --verbose | grep "$2" | awk '{print $1}' | head -n 1)
# We want word splitting here, because file names are space separated
# shellcheck disable=SC2086
- if ! "$workdir/"scripts/git/pre-commit.git-hook $CHECK_FILES; then
+ if ! scripts/git/pre-commit.git-hook $CHECK_FILES ; then
exit 1
fi