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

Re: [BUG] Git 2.20: `git help -a' hangs if specific git alias occurs

From
Duy Nguyen <pclouds@gmail.com>
Date
Dec 11, 2018, 17:46 UTC
Message-ID
<CACsJy8AjWXBycFEY-hmPB270BzcydxG6xQ6ox96VbK3K-sUnZw@mail.gmail.com>
In-Reply-To
<CAKc7PVAzSOknfmy7p09zF4LOi4t66CBmd27ZuQ39_wKYWSiiUA@mail.gmail.com>

On Tue, Dec 11, 2018 at 6:42 PM Sebastian Gniazdowski <sgniazdowski@gmail.com> wrote:

Show 19 quoted lines
>
> Hello,
> I've attached a screenshot for running `git help -a' that ends in a
> hang and ~100% cpu usage, for the following ~/.gitconfig (it's also
> attached):
>
> https://raw.githubusercontent.com/agostonbarna/dotfiles-base/master/.gitconfig
>
> So it's hangs on the alias `remote-origin-https-to-ssh'. One user in
> following thread discovered, that it's about lenght of the alias:
> "abcdefghijklmnopqr = ... is ok, but with abcdefghijklmnopqrs = ..."
> it will crash, "the problem occurs if the name of a git alias consists
> of more than 18 characters" (see the thread:
> https://github.com/zdharma/fast-syntax-highlighting/issues/95).
>
> Is there a workaround? Of course a fix is needed, but I'm interested
> specifically in a workaround so my Zsh plugin
> `fast-syntax-highlighting' can work without hang also with Git 2.20,
> without exceptions in code.

I don't think there's a workaround (except shortening the aliases). The fix for this was sent out just a couple hours ago, maybe it'll hit 2.20.1

https://public-inbox.org/git/pull.97.git.gitgitgadget@gmail.com/T/#t
Show 5 quoted lines
> --
> Sebastian Gniazdowski
> News: https://twitter.com/ZdharmaI
> IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
> Blog: http://zdharma.org
-- 
Duy
Previous: Sebastian GniazdowskiNext: SZEDER Gábor
Message 2 of 3 in “[BUG] Git 2.20: `git help -a' hangs if specific git alias occurs”
  1. Sebastian GniazdowskiDec 11, 2018
  2. Duy NguyenDec 11, 2018
  3. SZEDER GáborDec 11, 2018

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.