Skip to content

Commit 715e6cb

Browse files
Configure submodules to track main branch and auto-update on build
- Add branch = main to submodules in .gitmodules - Update build.sh to fetch latest from main before building - Update hedit submodule to v0.6.2-alpha
1 parent 14593bd commit 715e6cb

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitmodules

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[submodule "hedit"]
22
path = hedit
33
url = https://github.com/Annotation-Garden/hedit.git
4+
branch = main
45
[submodule "image-annotation"]
56
path = image-annotation
67
url = https://github.com/Annotation-Garden/image-annotation.git
8+
branch = main

build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ set -e
66
echo "Initializing submodules..."
77
git submodule update --init --recursive
88

9+
echo "Updating submodules to latest from main branch..."
10+
git submodule update --remote --merge
11+
912
echo "Building documentation..."
1013
mkdocs build
1114

0 commit comments

Comments
 (0)