summary refs log tree commit diff stats
path: root/hooks/pre-up
diff options
context:
space:
mode:
authorAlan Pearce2014-07-06 12:25:43 +0100
committerAlan Pearce2014-07-06 12:25:43 +0100
commite117c36fa22f2d59ae034745b992ebd669fe11ba (patch)
treedf04261219adc86dc07d4b22079c79b0e33c61a7 /hooks/pre-up
parent778c6addbea42d251d90618084c7c535927dc15c (diff)
downloaddotfiles-e117c36fa22f2d59ae034745b992ebd669fe11ba.tar.lz
dotfiles-e117c36fa22f2d59ae034745b992ebd669fe11ba.tar.zst
dotfiles-e117c36fa22f2d59ae034745b992ebd669fe11ba.zip
rcm: Add hook to ensure submodules are correct
Diffstat (limited to 'hooks/pre-up')
-rwxr-xr-xhooks/pre-up/submodules5
1 files changed, 5 insertions, 0 deletions
diff --git a/hooks/pre-up/submodules b/hooks/pre-up/submodules
new file mode 100755
index 0000000..ae4f42f
--- /dev/null
+++ b/hooks/pre-up/submodules
@@ -0,0 +1,5 @@
+#!/usr/bin/env zsh
+echo $0:h:h:h
+pushd $0:h:h:h
+git submodule update --init
+popd
\ No newline at end of file