{"thread":{"id":"60429","subject":"git diagnose in non git directory results in core dump","startedAt":"2023-10-25T20:41:43Z","lastAt":"2023-10-25T21:02:29Z","messageCount":2,"participants":["Sheik","Kristoffer Haugsbakk"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"483870","messageId":"3e409165-2468-47be-895e-f3ec86b94730@gmail.com","threadId":"60429","inReplyTo":null,"subject":"git diagnose in non git directory results in core dump","fromName":"Sheik","fromEmail":"sahibzone@gmail.com","sentAt":"2023-10-25T20:41:37Z","receivedAt":"2023-10-25T20:41:43Z","isPatch":false,"sender":{"key":"sahibzone@gmail.com","avatar":null},"body":"Hi Maintainers,\n\n\nRunning git diagnose in a non git directory results in a core dump. \nExpected behaviour would be that it reports an error.\n\n\nmkdir test\n\ncd test\n\ngit diagnose\n\n#Output...\n\nSegmentation fault (core dumped)\n\n\nThanks\n\nSheik\n\n\n[System Info]\ngit version:\ngit version 2.42.0\ncpu: x86_64\nno commit associated with this build\nsizeof-long: 8\nsizeof-size_t: 8\nshell-path: /bin/sh\nuname: Linux 6.5.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.6-1 \n(2023-10-07) x86_64\ncompiler info: gnuc: 13.2\nlibc info: glibc: 2.37\n$SHELL (typically, interactive shell): /bin/bash\n\n\n[Enabled Hooks]\n\n"},{"id":"483873","messageId":"1f1e89c7-6502-4a01-a99b-df191f1d733b@app.fastmail.com","threadId":"60429","inReplyTo":"3e409165-2468-47be-895e-f3ec86b94730@gmail.com","subject":"Re: git diagnose in non git directory results in core dump","fromName":"Kristoffer Haugsbakk","fromEmail":"code@khaugsbakk.name","sentAt":"2023-10-25T21:01:14Z","receivedAt":"2023-10-25T21:02:29Z","isPatch":false,"sender":{"key":"code@khaugsbakk.name","avatar":"https://avatars.githubusercontent.com/u/2229597?v=4"},"body":"Being worked on: https://lore.kernel.org/git/CAKFQ_Q9WjF9i-Rx2jdCw-adPVQrWNfNKrDY-em8Rpa5RNLXz4A@mail.gmail.com/\n\n-- \nKristoffer Haugsbakk\n"}]}