Skip to content

Commit 993ffec

Browse files
committed
fix: When updating, also update submodules. Closes #66
1 parent 46f6b57 commit 993ffec

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/lib/commands/do-upgrade.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ do-upgrade() {
2727

2828
if [ -d "$PROGRAM_LIB_DIR/../../.git" ]; then
2929
git -C "$PROGRAM_LIB_DIR/../.." pull
30+
31+
# '--init' wasn't included in the original installation instructions
32+
# and submodules might be added in the future
33+
git -C "$PROGRAM_LIB_DIR/../.." submodule init
34+
git -C "$PROGRAM_LIB_DIR/../.." submodule sync --recursive
35+
git -C "$PROGRAM_LIB_DIR/../.." submodule update --recursive --merge
3036
else
3137
log.error "bpm is not a Git repository"
3238
fi

0 commit comments

Comments
 (0)