Loading changes/bug33284 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor bugfixes (git scripts): - Stop executing the checked-out pre-commit hook from the pre-push hook. Instead, execute the copy in the user's git dir. Fixes bug 33284; bugfix on 0.4.1.1-alpha. scripts/git/pre-push.git-hook +7 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,11 @@ z40=0000000000000000000000000000000000000000 upstream_name=${TOR_UPSTREAM_REMOTE_NAME:-"upstream"} # The working directory workdir=$(git rev-parse --show-toplevel) # The .git directory # If $workdir is a worktree, then $gitdir is not $workdir/.git gitdir=$(git rev-parse --git-dir) cd "$workdir" || exit 1 Loading Loading @@ -58,7 +62,8 @@ do fi # Call the pre-commit hook for the common checks, if it is executable if [ -x scripts/git/pre-commit.git-hook ]; then pre_commit=${gitdir}/hooks/pre-commit if [ -x "$pre_commit" ]; then # Only check the files newly modified in this branch CHECK_FILTER="git diff --name-only --diff-filter=ACMR $range" # Use the appropriate owned tor source list to filter the changed Loading @@ -81,7 +86,7 @@ do # We want word splitting here, because file names are space # separated # shellcheck disable=SC2086 if ! scripts/git/pre-commit.git-hook $CHECK_FILES ; then if ! "$pre_commit" $CHECK_FILES ; then exit 1 fi fi Loading Loading
changes/bug33284 0 → 100644 +4 −0 Original line number Diff line number Diff line o Minor bugfixes (git scripts): - Stop executing the checked-out pre-commit hook from the pre-push hook. Instead, execute the copy in the user's git dir. Fixes bug 33284; bugfix on 0.4.1.1-alpha.
scripts/git/pre-push.git-hook +7 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,11 @@ z40=0000000000000000000000000000000000000000 upstream_name=${TOR_UPSTREAM_REMOTE_NAME:-"upstream"} # The working directory workdir=$(git rev-parse --show-toplevel) # The .git directory # If $workdir is a worktree, then $gitdir is not $workdir/.git gitdir=$(git rev-parse --git-dir) cd "$workdir" || exit 1 Loading Loading @@ -58,7 +62,8 @@ do fi # Call the pre-commit hook for the common checks, if it is executable if [ -x scripts/git/pre-commit.git-hook ]; then pre_commit=${gitdir}/hooks/pre-commit if [ -x "$pre_commit" ]; then # Only check the files newly modified in this branch CHECK_FILTER="git diff --name-only --diff-filter=ACMR $range" # Use the appropriate owned tor source list to filter the changed Loading @@ -81,7 +86,7 @@ do # We want word splitting here, because file names are space # separated # shellcheck disable=SC2086 if ! scripts/git/pre-commit.git-hook $CHECK_FILES ; then if ! "$pre_commit" $CHECK_FILES ; then exit 1 fi fi Loading