From 3d3d8bf1736400f064dc25213bc38ea1f902ed25 Mon Sep 17 00:00:00 2001 From: Harald Pfeiffer Date: Sun, 14 Jul 2024 13:06:12 +0200 Subject: final hook --- .githooks/post-checkout | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.githooks/post-checkout b/.githooks/post-checkout index f0afc59..e02dfcf 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -1,21 +1,13 @@ #!/usr/bin/env sh -#install -dvm 0750 .git/modules -#install -dvm 0750 .git/modules/git-prompt -#install -dvm 0750 .git/modules/git-prompt/info -#cat > .git/modules/git-prompt/info/sparse-checkout < contrib/completion/git-prompt.sh || exit 112 + git restore --staged contrib/completion/git-prompt.sh + git checkout contrib/completion/git-prompt.sh + # if you can't cope with git reporting a truckload of deleted files, do this: + #rm -rf .git + # ...mind you this will alwasys pull in the whole repository on checkout/clone. ) -- cgit v1.2.3