git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
path: root/.githooks/post-checkout
blob: f0afc59875b267189fbe7f42d26a460da898e188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/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

)