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

Fwd: error: 'submodule' does not have a commit checked out

From
AMAleksey Midenkov <midenok@gmail.com>
Date
Jan 11, 2021, 14:44 UTC
Message-ID
<CAF8BazDLhgtgt1jCD7B64ytguF-NYL60nDS9F8nxbRhhbfX7Cg@mail.gmail.com>
In-Reply-To
<CAF8BazC1kEV+s7vDSAkqcvjYVTCyDaw8gi0ZHpH7K+3Q4CAczA@mail.gmail.com>
I used to update last commit with new changes:
git commit --amend .
The project has several submodules:
 e116c89a58af750421d82ece13f80516d2bde02e extra/wolfssl/wolfssl
(v4.3.0-stable-596-ge116c89a5)
a746c3af449a8754e78ad7971e59e79af7957cdb libmariadb (v3.1.3-121-ga746c3a)
b6b02ed516f92055127d416370799d91a82754ea
storage/columnstore/columnstore (columnstore-1.5.3-1-14-gb6b02ed5)
-d172e86c16224b4e0229ca6f102e662a2315aeff storage/maria/libmarias3
-bba5e7bc21093d7cfa765e1280a7c4fdcd284288 storage/rocksdb/rocksdb
-ae4e58ba031587039c8830f2f8ca51fa9fb7d6eb wsrep-lib
Now it fails with this message:

git commit --amend . error: 'storage/maria/libmarias3' does not have a commit checked out fatal: updating files failed

How to use amend without specifying explicit paths without initializing submodules? I don't need to amend submodules and would prefer them ignored in my commits.

git --version git version 2.27.0

Works as expected in 2.19.1

-- All the best,

Aleksey Midenkov @midenok

Next: Philippe Blain
Message 1 of 2 in “Fwd: error: 'submodule' does not have a commit checked out”
  1. Aleksey MidenkovJan 11, 2021
  2. Philippe BlainJan 11, 2021

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.