diff options
author | mail_redacted_for_web | 2024-07-14 12:57:36 +0200 |
---|---|---|
committer | mail_redacted_for_web | 2024-07-14 12:57:36 +0200 |
commit | c93a9ef0252f7285f5bd8c0e5a60cde17c3ab1bd (patch) | |
tree | ab2b38c01f4c705fc139eb6738ad8c17c3197e89 /.githooks | |
parent | 0854d735ac6f596205df2484c9c5793cdf259e73 (diff) | |
download | dotfiles-c93a9ef0252f7285f5bd8c0e5a60cde17c3ab1bd.tar.bz2 |
preparation for submodule-less checkout
Diffstat (limited to '.githooks')
-rwxr-xr-x | .githooks/post-checkout | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/.githooks/post-checkout b/.githooks/post-checkout index d4bbbd7..f0afc59 100755 --- a/.githooks/post-checkout +++ b/.githooks/post-checkout @@ -1,13 +1,21 @@ #!/usr/bin/env sh -# client-side -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 +#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 -git -c submodule.sha1collisiondetection.update=none clone --depth=1 --no-checkout https://github.com/git/git.git git-prompt &&\ -git submodule add https://github.com/git/git.git git-prompt &&\ -git -C git-prompt config core.sparseCheckout true &&\ -git submodule update --force --checkout 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 + +) |