Skip to content

Commit cd2ca7b

Browse files
committed
pull submodules make command
Adding an helper funciton to pull the latest from all registered submodules
1 parent 150d3de commit cd2ca7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,9 @@ distclean: clean
9999
@@echo "Removing submodules"
100100
@@rm -rf test/qunit src/sizzle
101101

102+
# update the submodules to the latest at the most logical branch
103+
pull_submodules:
104+
@@git submodule foreach "git pull origin \$$(git branch --no-color --contains \$$(git rev-parse HEAD) | grep -v \( | head -1)"
105+
@@git submodule summary
106+
102107
.PHONY: all jquery lint min init jq clean

0 commit comments

Comments
 (0)