diff options
| author | mail_redacted_for_web | 2024-07-14 13:06:12 +0200 | 
|---|---|---|
| committer | mail_redacted_for_web | 2024-07-14 13:06:12 +0200 | 
| commit | 3d3d8bf1736400f064dc25213bc38ea1f902ed25 (patch) | |
| tree | ac3ad2d548c66872269318bb67183b91df2bd59b | |
| parent | 784cca88b3ccfaf2e3ddc6d39b6b62da3e636b31 (diff) | |
| download | dotfiles-3d3d8bf1736400f064dc25213bc38ea1f902ed25.tar.bz2 | |
final hook
| -rwxr-xr-x | .githooks/post-checkout | 24 | 
1 files 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 <<EOF -#contrib/completion/git-prompt.sh -#EOF  rm -rf ./git-prompt -#printf "git-clone of submodule:\\n" -#git -c submodule.sha1collisiondetection.update=none clone --depth=1 --no-checkout https://github.com/git/git.git git-prompt &&\ -#printf "git-submodule add:\\n" &&\ -#git submodule add -f https://github.com/git/git.git git-prompt &&\ -#printf "git-config sparseCheckout:\\n" &&\ -#git -C git-prompt config core.sparseCheckout true &&\ -#printf "git-submodule update:\\n" &&\ -#git submodule update --force --checkout git-prompt  git -c submodule.sha1collisiondetection.update=none clone --no-checkout --depth 1 https://github.com/git/git.git ./git-prompt &&\  ( -	cd ./git-prompt || exit 1 - +	cd ./git-prompt || exit 110 +	#mkdir -pv contrib/completion || exit 111 +	#git show HEAD:contrib/completion/git-prompt.sh > 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.  ) | 
