Skip to content

Commit a2faed3

Browse files
committed
Merge when updating submodules on make
When running make, the submodule update will remove all local changes. Adding flag --rebase or --merge does solve the issue. rebase will probably make it cleaner, but it might stop on conflict, thus --merge will result in fewer (probably none).
1 parent 0cf336d commit a2faed3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ ${DIST_DIR}:
4949
@@mkdir -p ${DIST_DIR}
5050

5151
init:
52-
@@if [ -d .git ]; then git submodule update --init --recursive; fi
52+
@@if [ -d .git ]; then git submodule update --init --recursive --merge; fi
5353

5454
jquery: init ${JQ}
5555
jq: init ${JQ}

0 commit comments

Comments
 (0)