All of lore.kernel.org
 help / color / mirror / Atom feed
From: <rsbecker@nexbridge.com>
To: <git@vger.kernel.org>
Subject: [RFE] git submodule foreach where initialized
Date: Sat, 11 Dec 2021 13:32:11 -0500	[thread overview]
Message-ID: <024501d7eebd$6cc88830$46599890$@nexbridge.com> (raw)

Hi All,

I have hit an edge condition that I think may need a command option. When
cloning, we sometimes ignore a specific submodule (because we don't need it
on the platform we are building in this case).

The git submodule foreach command reports an error: fatal: No url found for
submodule path 'sub1' in .gitmodules

In our situation, this can be bypassed because we don't care about sub1. My
thought is that some option like --init-only or --ignore-uninit might be
useful to bypass this condition and allow the foreach to run on all valid
submodules. Does that make sense?

Regards,
Randall




                 reply	other threads:[~2021-12-11 18:32 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

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

  git send-email \
    --in-reply-to='024501d7eebd$6cc88830$46599890$@nexbridge.com' \
    --to=rsbecker@nexbridge.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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.