Add git merge hook for submodules

This commit is contained in:
poka 2020-03-19 22:42:18 +01:00
parent 893b1e9e62
commit 3631596eb0
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ fi
git clone $giturl/axiom-team/astroport.git
cd astroport
[[ $isp2plegalbool == true ]] && sed -i 's/https:\/\/git.p2p.legal/http:\/\/192.168.9.19:3000/g' .gitmodules && echo "Infra p2p.legal detected, switch remotes submodules"
echo -e '#!/bin/bash\n./git-update.sh' > .git/hooks/post-merge
git submodule update --init --recursive
source ./git-update.sh