diff options
author | Jan-Michael Brummer <jan.brummer@tabos.org> | 2023-05-02 10:53:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 10:53:36 +0200 |
commit | d159c5f40ff7e82354e45116d9b66b1f596d9320 (patch) | |
tree | 34506d9ee6c699444a170c6bba8c925c45407d3e /data/install-git-hook.sh | |
parent | 8fec01ed4b95afc71bf7710bf5b736a5de03b343 (diff) | |
parent | 5272fb3d114f0d012871380bd429546c73f0226d (diff) | |
download | libproxy-git-d159c5f40ff7e82354e45116d9b66b1f596d9320.tar.gz |
Merge pull request #201 from janbrummer/rewrite
Complete rewrite
Diffstat (limited to 'data/install-git-hook.sh')
-rw-r--r-- | data/install-git-hook.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/data/install-git-hook.sh b/data/install-git-hook.sh new file mode 100644 index 0000000..355867b --- /dev/null +++ b/data/install-git-hook.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +cd "$MESON_SOURCE_ROOT" + +[ -d .git ] || exit 2 # not a git repo +[ ! -f .git/hooks/pre-commit ] || exit 2 # already installed + +cp data/pre-commit-hook .git/hooks/pre-commit +cp data/canonicalize_filename.sh .git/hooks/canonicalize_filename.sh +chmod +x .git/hooks/pre-commit +echo "Activated pre-commit hook"
\ No newline at end of file |