logo

utils

~/.local/bin tools and git-hooks
commit: 47ff1fa7f12de403eef65a8e7bb5dd890a6b5886
parent: d406abbb2014aa4aa342974d60325a5f0c5fcd1a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 11 Dec 2019 03:51:48 +0100

git-hooks/post-update: Fix executing multiple post-update.* hooks

Diffstat:

Mgit-hooks/post-update2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/git-hooks/post-update b/git-hooks/post-update @@ -13,5 +13,5 @@ printf "$update_f" work mkdir -p "${base}.work/.git" && GIT_INDEX_FILE="${base}.work/.git/index" git --work-tree="${base}.work" --git-dir="${base}.git" checkout -f && is_ok for i in ${base}.git/hooks/post-update.*; do - [[ -x $i ]] && echo "${PS4:-+}${i}" && exec $i + [[ -x $i ]] && echo "${PS4:-+}${i}" && $i done