We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2dd891 commit 8a1156dCopy full SHA for 8a1156d
Makefile
@@ -98,8 +98,16 @@ distclean: clean
98
@@rm -rf test/qunit src/sizzle
99
100
# change pointers for submodules and update them to what is specified in jQuery
101
+# --merge doesn't work when doing an initial clone, thus test if we have non-existing
102
+# submodules, then do an real update
103
update_submodules:
- @@if [ -d .git ]; then git submodule update --init --recursive --merge; fi
104
+ @@if [ -d .git ]; then \
105
+ if git submodule status | grep -q -E '^-'; then \
106
+ git submodule update --init --recursive; \
107
+ else \
108
+ git submodule update --init --recursive --merge; \
109
+ fi; \
110
+ fi;
111
112
# update the submodules to the latest at the most logical branch
113
pull_submodules:
0 commit comments