ontodev / droid

DROID Reminds us that Ordinary Individuals can be Developers
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Report a clear error when git authentication fails #144

Open jamesaoverton opened 6 months ago

jamesaoverton commented 6 months ago

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?