File: setup-hooks.sh

package info (click to toggle)
qxmpp 1.13.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,480 kB
  • sloc: cpp: 73,257; xml: 1,345; ansic: 362; sh: 176; makefile: 16
file content (11 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

# SPDX-FileCopyrightText: 2023 Melvin Keskin <melvo@olomono.de>
#
# SPDX-License-Identifier: CC0-1.0

# This script sets up useful git hooks in the local repository.

REPO_ROOT=$(dirname "$(readlink -f "${0}")")/..

cp $REPO_ROOT/utils/pre-commit.sh .git/hooks/pre-commit