Add git merge hook for submodules
This commit is contained in:
parent
893b1e9e62
commit
3631596eb0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue