We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78e186 commit eb30a6cCopy full SHA for eb30a6c
hooks/post-checkout
@@ -11,10 +11,15 @@ readonly repo=$(git rev-parse --show-toplevel)
11
12
main() {
13
rm -rf -- "${repo}/.git/hooks"
14
+ initializeSubmodules
15
installClonedReposHooks
16
invokeClonedReposPostCloneHook
17
}
18
19
+initializeSubmodules() {
20
+ git submodule update --init --recursive
21
+}
22
+
23
installClonedReposHooks() {
24
cd "${repo}/.git"
25
rm -rf hooks
@@ -23,7 +28,7 @@ installClonedReposHooks() {
28
29
30
invokeClonedReposPostCloneHook() {
26
- local -r post_clone_hook=${repo}/.git/hooks/post-clone
31
+ local -r post_clone_hook="${repo}/.git/hooks/post-clone"
27
32
test ! -e "${post_clone_hook}" && return
33
chmod u+x "${post_clone_hook}"
34
${post_clone_hook}
0 commit comments