When running a UI, show a better error if the git configuration is deprecated

Labels: area/git kind/feature priority/backlog

Timeline

Kristoffer Haugsbakk (LemmingAvalanche) opened

The documentation for git-config(1) says that the syntax is deprecated (I didn’t know):

There is also a deprecated [section.subsection] syntax.

But the error wasn’t easy to understand. So in any case with:

[gpg.ssh]
        allowedSignersFile=<file>

You get this:

$ git bug webui
Web UI: http://127.0.0.1:41935
Graphql API: http://127.0.0.1:41935/graphql
Graphql Playground: http://127.0.0.1:41935/playground
Press Ctrl+c to quit
Error: 198:5: illegal character U+002E '.'

Also with git bug termui

$ git bug termui
[press `s` to search]
Error: Unable to detect default git editor: 198:5: illegal character U+002E '.'

Not a big deal now that I know the solution (which is just to not use deprecated syntax). But maybe someone in the future will find this?

Related: #688 Related: #904

Version

$ git bug version
git-bug version: v0.10.1

sudoforge added label kind/feature

sudoforge added label priority/backlog

sudoforge added label area/git

sudoforge changed the title from When running a UI, show a better error if the git configuration is deprecated to When running a UI, show a better error if the git configuration is deprecated

sudoforge commented

Thanks for opening this! This is indeed a user experience that would benefit from a better error message. I've slotted this in for a future feature release.