# git diagnose in non git directory results in core dump

2 messages from 2023-10-25 to 2023-10-25. Participants: Sheik, Kristoffer Haugsbakk.
Thread: https://gitlist.dev/t/60429

## Sheik, 2023-10-25 20:41

Subject: git diagnose in non git directory results in core dump
Message-ID: <3e409165-2468-47be-895e-f3ec86b94730@gmail.com>
URL: https://gitlist.dev/e/3e409165-2468-47be-895e-f3ec86b94730%40gmail.com

```
Hi Maintainers,


Running git diagnose in a non git directory results in a core dump. 
Expected behaviour would be that it reports an error.


mkdir test

cd test

git diagnose

#Output...

Segmentation fault (core dumped)


Thanks

Sheik


[System Info]
git version:
git version 2.42.0
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 6.5.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.6-1 
(2023-10-07) x86_64
compiler info: gnuc: 13.2
libc info: glibc: 2.37
$SHELL (typically, interactive shell): /bin/bash


[Enabled Hooks]


```

## Kristoffer Haugsbakk, 2023-10-25 21:01

Subject: Re: git diagnose in non git directory results in core dump
Message-ID: <1f1e89c7-6502-4a01-a99b-df191f1d733b@app.fastmail.com>
URL: https://gitlist.dev/e/1f1e89c7-6502-4a01-a99b-df191f1d733b%40app.fastmail.com
In-Reply-To: <3e409165-2468-47be-895e-f3ec86b94730@gmail.com>

```
Being worked on: https://lore.kernel.org/git/CAKFQ_Q9WjF9i-Rx2jdCw-adPVQrWNfNKrDY-em8Rpa5RNLXz4A@mail.gmail.com/

-- 
Kristoffer Haugsbakk

```
