Commit 82b690d7 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

Merge remote-tracking branch 'tor-github/pr/910'

parents 7b2357a3 e8e69316
Loading
Loading
Loading
Loading

changes/ticket30033

0 → 100644
+4 −0
Original line number Diff line number Diff line
  o Minor features (developer tooling):
    - Call pre-commit git hook from pre-push hook to make sure we're
      running documentation and code style checks before pushing to remote
      git repository. Implements feature 30033.
+7 −0
Original line number Diff line number Diff line
@@ -27,6 +27,13 @@ ref_is_upstream_branch() {
        fi
}

workdir=$(git rev-parse --show-toplevel)
if [ -x "$workdir/.git/hooks/pre-commit" ]; then
  if ! "$workdir"/.git/hooks/pre-commit; then
    exit 1
  fi
fi

# shellcheck disable=SC2034
while read -r local_ref local_sha remote_ref remote_sha
do