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

Re: Possible segfault with `git clone --mirror`

From
KMKostya M <kostya27@gmail.com>
Date
Apr 26, 2021, 12:53 UTC
Message-ID
<CACAwW2gUo7R2V-gX8dM90UCoRSBwqgz3nw67xyDx1a3R9ahmqw@mail.gmail.com>
In-Reply-To
<YIYL2BtIacMIthgy@danh.dev>
Yes, adding `HOME=/tmp/not-exist` fix this.
my ~/.gitconfig is (maybe it have outdated options, it was generated long ago):
[color]
  status = auto
  branch = auto
  diff   = auto
[core]
  symlinks = false
  autocrlf = false
  repositoryformatversion = 0
  filemode = false
  bare = false
  logallrefupdates = true
  symlinks = false
  ignorecase = true
  quotepath = false
  pager = less
  editor = "vim"
[pack]
  packSizeLimit = 2g
[apply]
  whitespace = nowarn
[i18n]
пн, 26 апр. 2021 г. в 03:39, Đoàn Trần Công Danh <congdanhqx@gmail.com>:
Show 24 quoted lines
>
> On 2021-04-25 21:17:50+0300, Kostya M <kostya27@gmail.com> wrote:
> > Git 2.31.1, reproduced on Ubuntu 20.04.01, and Arch Linux.
> >
> > `git clone -c core.askPass=true --mirror --quiet --
> > https://github.com/kostya/myhtml.git myhtml`
> > Segmentation fault (core dumped)
> >
> > If i remove --mirror argument, it works.
> > This command generated by crystal language package manager called shards.
>
> Not reproducible.
>
> You may want to check if it's your config or filesystem first?
>
> If I were you, I would run something like this to see if it works:
> (Maybe with GIT_TRACE2=1 removed in first run to see if it's your config)
>
>         HOME=/tmp/not-exist XDG_CONFIG_HOME=/tmp/not-exist GIT_TRACE2=1 \
>                 /usr/bin/git clone -c core.askPass=true --mirror --quiet -- \
>                 https://github.com/kostya/myhtml.git myhtml
>
> --
> Danh
Previous: Đoàn Trần Công DanhNext: René Scharfe
Message 3 of 4 in “Possible segfault with `git clone --mirror`”
  1. Kostya MApr 25, 2021
  2. Đoàn Trần Công DanhApr 26, 2021
  3. Kostya MApr 26, 2021
  4. René ScharfeApr 26, 2021

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.