github.com/pion/webrtc/v3@v3.2.24/.github/install-hooks.sh (about)

     1  #!/bin/sh
     2  
     3  #
     4  # DO NOT EDIT THIS FILE
     5  #
     6  # It is automatically copied from https://github.com/pion/.goassets repository.
     7  #
     8  # If you want to update the shared CI config, send a PR to
     9  # https://github.com/pion/.goassets instead of this repository.
    10  #
    11  # SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
    12  # SPDX-License-Identifier: MIT
    13  
    14  SCRIPT_PATH="$(realpath "$(dirname "$0")")"
    15  
    16  . ${SCRIPT_PATH}/fetch-scripts.sh
    17  
    18  cp "${GOASSETS_PATH}/hooks/commit-msg.sh" "${SCRIPT_PATH}/../.git/hooks/commit-msg"
    19  cp "${GOASSETS_PATH}/hooks/pre-commit.sh" "${SCRIPT_PATH}/../.git/hooks/pre-commit"
    20  cp "${GOASSETS_PATH}/hooks/pre-push.sh" "${SCRIPT_PATH}/../.git/hooks/pre-push"