From: Junio C Hamano Date: Tue, 03 Mar 2020 17:06:51 GMT Subject: Re: [PATCH] prefix_path: show gitdir if worktree unavailable Message-ID: In-Reply-To: <20200303040506.241376-1-emilyshaffer@google.com> Emily Shaffer writes: > If there is no worktree at present, we can still hint the user about > Git's current directory by showing them the absolute path to the Git > directory. Even though the Git directory doesn't make it as easy to > locate the worktree in question, it can still help a user figure out > what's going on while developing a script. > > This fixes a segmentation fault introduced in e0020b2f829. > > Signed-off-by: Emily Shaffer > --- > This patch is built on top of es/outside-repo-errmsg-hints. I think it > doesn't need to be, since that change is in master, though. > > Sounds like there's a segfault in the wild: Thanks. We should protect the fix with a test, no? > pathspec.c | 8 ++++++-- > setup.c | 8 ++++++-- > 2 files changed, 12 insertions(+), 4 deletions(-)