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

Re: [PATCH V4] config: add --expiry-date

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Nov 30, 2017, 11:18 UTC
Message-ID
<20171130111849.GA98794@book.hvoigt.net>
In-Reply-To
<20171120203702.mdd3hkwezxyf7vtg@sigill.intra.peff.net>
On Mon, Nov 20, 2017 at 03:37:03PM -0500, Jeff King wrote:
Show 18 quoted lines
> On Mon, Nov 20, 2017 at 12:28:11PM -0800, Stefan Beller wrote:
> 
> > > +cc Stefan, who added the die(). It may be that we don't care that much
> > > these days about recovering from broken .gitmodules files.
> > 
> > By that you mean commits like 37f52e9344 (submodule-config:
> > keep shallow recommendation around, 2016-05-26) for example?
> > That adds a git_config_bool to the submodule config machinery.
> 
> I actually meant ea2fa5a338 (submodule-config: keep update strategy
> around, 2016-02-29), which adds an actual die() into parse_config(). But
> yeah, I think the end result is the same.
> 
> > I agree that we'd want to be more careful, but for now I'd put it to the
> > #leftoverbits.
> 
> Fine by me. While I think the original intent was to be more lenient to
> malformed .gitmodules, it's not like we're seeing bug reports about it.

My original intent was not about being more lenient about malformed .gitmodules but having a way to deal with repository history that might have a malformed .gitmodules in its history. Since depending on the branch it is on it might be quite carved in stone. On an active project it would not be that easy to rewrite history to get out of that situation.

When a .gitmodules file in the worktree is malformed it is easy to fix. That is not the case when we are reading configurations from blobs.

My guess why there are no reports is that maybe not too many users are using this infrastructure yet, plus it is probably seldom that someone edits the .gitmodules file by hand which could lead to such a situation. But if such an error occurs it will be very annoying if we die while parsing submodule configurations. The only solution I see currently is to turn submodule recursion off completely.

But maybe I am being overly cautious here.
Cheers Heiko
Previous: Jeff KingNext: Jeff King
Message 19 of 21 in “config: added --expiry-date type support”
  1. config: added --expiry-date type supportHaaris, Nov 12, 2017
  2. Kevin DaudtNov 12, 2017
  3. Jeff KingNov 12, 2017
  4. Jeff KingNov 12, 2017
  5. config: add --expiry-datehsed@unimetic.com, Nov 14, 2017
  6. Christian CouderNov 14, 2017
  7. Marc BranchaudNov 14, 2017
  8. Junio C HamanoNov 14, 2017
  9. hsed@unimetic.comNov 15, 2017
  10. config: add --expiry-datehsed@unimetic.com, Nov 16, 2017
  11. Junio C HamanoNov 16, 2017
  12. hsed@unimetic.comNov 17, 2017
  13. config: add --expiry-datehsed@unimetic.com, Nov 18, 2017
  14. Junio C HamanoNov 18, 2017
  15. hsed@unimetic.comNov 20, 2017
  16. Jeff KingNov 20, 2017
  17. Stefan BellerNov 20, 2017
  18. Jeff KingNov 20, 2017
  19. Heiko VoigtNov 30, 2017
  20. Jeff KingNov 30, 2017
  21. hsed@unimetic.comNov 12, 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.