git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.githooks/post-checkout30
-rw-r--r--.gitignore2
-rw-r--r--.gitmodules3
3 files changed, 23 insertions, 12 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
+
+)
diff --git a/.gitignore b/.gitignore
index e9d033e..64410c0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,5 +28,5 @@
!/.vimrc
!/.ssh/config
!/.ssh/config.d/0000-all.conf
-#!/git-prompt
+!/git-prompt
!/.githooks
diff --git a/.gitmodules b/.gitmodules
index d2a5366..9a9d797 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -6,3 +6,6 @@
path = tmux-yank
url = https://github.com/tmux-plugins/tmux-yank
branch = master
+[submodule "git-prompt"]
+ path = git-prompt
+ url = https://github.com/git/git.git