[MDEV-28032] "git submodule update --depth 1" may fail with old Git Created: 2022-03-10  Updated: 2022-03-19  Resolved: 2022-03-19

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7
Fix Version/s: 10.3.35, 10.4.25, 10.5.16, 10.6.8, 10.7.4

Type: Bug Priority: Major
Reporter: Kouhei Sutou Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MDEV-20544 Update version of Mroonga storage engine Open

 Description   

I'm working on MDEV-20554 (updating bundled Mroonga) with "git submodules" approach.

We copy the Mroonga source into storage/mroonga for now. I'll remove storage/mroonga and use "git submodules" instead for MDEV-20554.

We use "git submodule --init --recursive --depth 1" to update submodules in CI.
But old Git (< 2.8) may fail it when a submodule refers an old commit hash.

e.g.: https://buildbot.askmonty.org/buildbot/builders/kvm-tarbake-jaunty-x86/builds/46427/steps/compile/logs/stdio

fatal: reference is not a tree: 2ceda83fd7880d00eaf1a84a835c466c0167d46c

See also a commit for Git 2.8: https://github.com/git/git/commit/fb43e31f2b43076e7a30c9cd00d024


Generated at Thu Feb 08 09:57:32 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.