Skip to content

Commit

Permalink
I've used this version of the update_submodules script for several re…
Browse files Browse the repository at this point in the history
…leases, so here I am committing it for posterity.
  • Loading branch information
phillmv committed Jul 31, 2023
1 parent 42cfc90 commit d0e81e2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions script/update_submodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

set -e
set -euo pipefail

if [ -z "$1" ]; then
BRANCH="main"
Expand All @@ -14,7 +14,10 @@ echo "Checking out cmark-upstream"
echo "---------------------"
cd ext/commonmarker/cmark-upstream
git fetch origin
git checkout $BRANCH && git pull
# when checking out a tag, for whatever reason the git pull step fails
# so we comment it out for now:
# git checkout $BRANCH && git pull
git checkout $BRANCH
sha=`git rev-parse HEAD`
cd ../../..
make
Expand Down

0 comments on commit d0e81e2

Please sign in to comment.