Skip to content

Commit d0e81e2

Browse files
committed
I've used this version of the update_submodules script for several releases, so here I am committing it for posterity.
1 parent 42cfc90 commit d0e81e2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

script/update_submodules

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
set -e
3+
set -euo pipefail
44

55
if [ -z "$1" ]; then
66
BRANCH="main"
@@ -14,7 +14,10 @@ echo "Checking out cmark-upstream"
1414
echo "---------------------"
1515
cd ext/commonmarker/cmark-upstream
1616
git fetch origin
17-
git checkout $BRANCH && git pull
17+
# when checking out a tag, for whatever reason the git pull step fails
18+
# so we comment it out for now:
19+
# git checkout $BRANCH && git pull
20+
git checkout $BRANCH
1821
sha=`git rev-parse HEAD`
1922
cd ../../..
2023
make

0 commit comments

Comments
 (0)