]> www.infradead.org Git - users/borneoa/openocd-next.git/commit
openocd: build: prevent old clone to fail on git submodules
authorAntonio Borneo <borneo.antonio@gmail.com>
Fri, 21 Jun 2024 12:32:45 +0000 (14:32 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 13 Jul 2024 16:47:12 +0000 (16:47 +0000)
commit990869f7ec8dbb91f14f9edde6f02dc30fd18b8e
tree9644861d606608bbbb683602b4bd4321ff1a05c9
parent6ed058933cfc023ef02e8c6d08c37ddc5b0328c2
openocd: build: prevent old clone to fail on git submodules

Working on an old local git repository, the git sub-modules could
have been set before last changes in .gitmodules.
The script 'bootstrap' does not update the url of the repositories
and this can cause the script to fail.

Add 'git submodule sync' to the script to update the url of the
repositories.
While there, fuse 'git submodule init' and git submodule update'
in a single command.

Reported-by: Karl Hammar <karl@aspodata.se>
Change-Id: I61412f804dbbb7a843aa009139ddb4b8e71beefb
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8375
Tested-by: jenkins
bootstrap