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

Detect invalid submodule names from script?

From
JDJoachim Durchholz <jo@durchholz.org>
Date
Jul 17, 2017, 11:17 UTC
Message-ID
<41004589-4a98-2084-b542-51b7458f607b@durchholz.org>
Hi all

I'm hacking some script that calls into git, and I need to detect whether a repository was configured with a submodule name that will work on "git submodule init" and friends. I *can* run a git init and see whether it works, but I need to be 100% sure that the error was due to an invalid submodule name and not something else. Bonus points for every version of git for which it works.

Any suggestions? Thanks!

Regards, Jo

Next: Stefan Beller
Message 1 of 3 in “Detect invalid submodule names from script?”
  1. Joachim DurchholzJul 17, 2017
  2. Stefan BellerJul 17, 2017
  3. Joachim DurchholzJul 17, 2017

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.