From b87943378dd09b54dfbea3a63af224d73f3edac5 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 17 Jun 2017 09:10:45 +0300 Subject: [PATCH] - Added a Git hook to install the Git hooks. --- .githooks/post-merge | 2 ++ README.rst | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.githooks/post-merge b/.githooks/post-merge index 0c26955..97b5562 100755 --- a/.githooks/post-merge +++ b/.githooks/post-merge @@ -1,6 +1,8 @@ #!/bin/sh set -eu cd "$(git rev-parse --show-toplevel)" +echo Installing Git hooks +Documents/bin/install-git-hooks echo Generating SSH config Documents/bin/gen-ssh-config echo Loading dconf config diff --git a/README.rst b/README.rst index 08a41d0..b19a539 100644 --- a/README.rst +++ b/README.rst @@ -22,9 +22,7 @@ WARNING: This will overwrite your existing files. sed -i '/bare/d' .git/config git reset --hard git bull - cd .githooks - find -type f -exec ln -sf ../../.githooks/{} ../.git/hooks/ \; - cd ../ + Documents/bin/install-git-hooks License ------- -- GitLab