ontodev/droid

Report a clear error when git authentication fails

Opened this issue · 0 comments

Nico, Anita, and I all ran into this problem: DROID is running as root. It runs git as root to checkout a new branch (create-branch). My /root/.gitconfig was set to use gh for authentication. My gh auth had expired. But we don't really need any authentication to checkout a branch locally.

The error is reported in the logs, but it was hard to interpret the message.

I would like a clearer message on the page with instructions to fix.

Alternatively, it might be possible to avoid the error, maybe by running git with default configuration?