summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-06 12:25:43 +0100
committerAlan Pearce2014-07-06 12:25:43 +0100
commite117c36fa22f2d59ae034745b992ebd669fe11ba (patch)
treedf04261219adc86dc07d4b22079c79b0e33c61a7
parent778c6addbea42d251d90618084c7c535927dc15c (diff)
downloadnixfiles-e117c36fa22f2d59ae034745b992ebd669fe11ba.tar.lz
nixfiles-e117c36fa22f2d59ae034745b992ebd669fe11ba.tar.zst
nixfiles-e117c36fa22f2d59ae034745b992ebd669fe11ba.zip
rcm: Add hook to ensure submodules are correct
-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 00000000..ae4f42fd
--- /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