git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Aleksey Midenkov <midenok@gmail.com>
To: Git Mailing List <git@vger.kernel.org>
Subject: Fwd: error: 'submodule' does not have a commit checked out
Date: Mon, 11 Jan 2021 17:44:43 +0300	[thread overview]
Message-ID: <CAF8BazDLhgtgt1jCD7B64ytguF-NYL60nDS9F8nxbRhhbfX7Cg@mail.gmail.com> (raw)
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

       reply	other threads:[~2021-01-11 14:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAF8BazBFsR5yQ0M5wscCfE-KuXTGZ=i4-1gP9NZZvjCfAD5NrQ@mail.gmail.com>
     [not found] ` <CAF8BazC1kEV+s7vDSAkqcvjYVTCyDaw8gi0ZHpH7K+3Q4CAczA@mail.gmail.com>
2021-01-11 14:44   ` Aleksey Midenkov [this message]
2021-01-11 15:36     ` Fwd: error: 'submodule' does not have a commit checked out Philippe Blain

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF8BazDLhgtgt1jCD7B64ytguF-NYL60nDS9F8nxbRhhbfX7Cg@mail.gmail.com \
    --to=midenok@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).