git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Failure to fetch submodule with --depth=1 parameter

From
GYGrigory Yakushev <gy@daedalean.ai>
Date
Sep 3, 2019, 15:30 UTC
Message-ID
<CACfeHrrajM8_p0=N8ZPm9h7ObcvWT5EnVa-gLhtDODdG9GeyBw@mail.gmail.com>

$ git --version git version 2.17.1

Repro: $ git clone https://github.com/PX4/Firmware.git $ cd Firmware $ git submodule update --init --recursive --depth=1 ... error: Server does not allow request for unadvertised object 22df9475ca0d157e2db066a20f64c35906bf7f25 Fetched in submodule path 'Tools/sitl_gazebo', but it did not contain 22df9475ca0d157e2db066a20f64c35906bf7f25. Direct fetching of that commit failed.

The same line without --depth=1 flag works fine: $ git submodule update --init --recursive

Implication: Docker uses the line with --depth=1, so it fails to build from remote URLs. See https://github.com/docker/distribution/issues/2998

Next: Jeff King
Message 1 of 3 in “Failure to fetch submodule with --depth=1 parameter”
  1. Grigory YakushevSep 3, 2019
  2. Jeff KingSep 4, 2019
  3. Grigory YakushevSep 5, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.