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

Re: Issue with commit a2b26ff "fsck: convert gitmodules url to URL passed to curl"

From
Jeff King <peff@peff.net>
Date
May 11, 2020, 19:49 UTC
Message-ID
<20200511194930.GA10545@coredump.intra.peff.net>
In-Reply-To
<8F92F354-BBDD-4629-98D4-A67E0A865397@gmail.com>
On Mon, May 11, 2020 at 11:02:24AM -0700, Arno Gourdol wrote:
Show 10 quoted lines
> This change introduced stricter validation and checking of the .gitmodules file.
> 
> The problem is that I had an invalid URL in my .gitmodules file (an extra "/" in "http://“):
> 
> ```
> [submodule "packages/website/assets/tecendil-js"]
>     path = packages/website/assets/tecendil-js
>     url = https:///github.com/arnog/tecendil-js.git
>     branch = master
> ```

Yeah, I agree that would be blocked by the recent fsck changes you found.

> However, I cannot commit a fix to this, as it gets rejected because
> the current .gitmodules is invalid. As a result I can no longer push
> commits to my repo.

Was the broken .gitmodules already pushed up? If so, then the push fixing it shouldn't need to send the bad object, and should be allowed. Though you need to make sure you aren't pushing up any intermediate trees with the broken state, either (i.e., you can't push up the fix on top of some other changes; the fix has to come first).

If it wasn't already pushed up, then you should be able to fix via "git rebase -i" or similar. That will rewrite history, but the history hasn't been shared with anyone else by pushing, it shouldn't be a big deal.

> (PS: I have attempted to contact GitHub about this, but haven’t heard back)

Hopefully one of the suggestions above should lead to a resolution. But in the worst case they can relax the fsck restrictions temporarily to get a fix pushed up.

-Peff
Previous: Arno Gourdol
Message 2 of 2 in “Issue with commit a2b26ff "fsck: convert gitmodules url to URL passed to curl"”
  1. Arno GourdolMay 11, 2020
  2. Jeff KingMay 11, 2020

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.