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

[PATCH 0/2] submodule pushes be extra careful

From
Stefan Beller <sbeller@google.com>
Date
Oct 6, 2016, 19:37 UTC
Message-ID
<20161006193725.31553-1-sbeller@google.com>

This is a reroll of http://public-inbox.org/git/20161004210359.15266-1-sbeller@google.com/ ([PATCHv3 1/2] push: change submodule default to check when submodules exist) but with a test.

As we only have a heuristic, the test failed initially as these tests don't have any configuration at all nor do they have the submodule repos in the superprojects git dir. So I was looking for a cheap way to add a config.

I could have written the config myself via git config, I think it is more idiomatic to use a submodule command for that. However just getting the configuration added is not possible with a submodule command, so I made one in the first patch.

Thanks, Stefan

Stefan Beller (2):
  submodule add: extend force flag to add existing repos
  push: change submodule default to check when submodules exist
 builtin/push.c                 | 15 ++++++++++++++-
 git-submodule.sh               | 10 ++++++++--
 t/t5531-deep-submodule-push.sh |  6 +++++-
 t/t7400-submodule-basic.sh     | 14 ++++++++++++++
 4 files changed, 41 insertions(+), 4 deletions(-)
-- 
2.10.1.353.g1629400
Next: Stefan Beller
Message 1 of 10 in “submodule pushes be extra careful”
  1. 0/2 submodule pushes be extra carefulStefan Beller, Oct 6, 2016
  2. 1/2 submodule add: extend force flag to add existing reposStefan Beller, Oct 6, 2016
  3. Junio C HamanoOct 6, 2016
  4. Heiko VoigtOct 7, 2016
  5. Stefan BellerOct 7, 2016
  6. Heiko VoigtOct 11, 2016
  7. 2/2 push: change submodule default to check when submodules existStefan Beller, Oct 6, 2016
  8. Junio C HamanoOct 6, 2016
  9. Stefan BellerOct 6, 2016
  10. [PATCHv5] push: change submodule default to check when submodules existStefan Beller, Oct 6, 2016

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.