New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty ident when REMOTE_USER is an E-mail address #612

candlerb opened this Issue Dec 15, 2017 · 0 comments


None yet
1 participant

candlerb commented Dec 15, 2017

I have gitit setup behind a reverse proxy, where REMOTE_USER is set to a full E-mail address, by authenticating from mod_auth_openidc and a Google account.

RequestHeader set REMOTE_USER %{OIDC_CLAIM_email}e

The setting of the header works fine, however when I try to commit I get this error:

Happstack 7.4.5

Something went wrong here
Internal server error
Everything has stopped

The error was "UnknownError: Could not git commit *** Please tell me who you are. Run
git config --global "" git config --global "Your Name"
to set your account's default identity. Omit --global to set the identity only in this repository.
fatal: empty ident name (for <>) not allowed "

Running strace -f -p <pid> on the gitit process, I see:

[pid  5548] execve("/usr/bin/git", ["git", "commit", "--author", " <>", "-m", "test edit", ""], [/* 8 vars */]) = 0

That is, the ident within <> is empty.

Workaround: if I actually set an identity as suggested in the error

git config --global
git config --global gitit

...then the web interface commit succeeds, although the commit messages still have the strange format:

Author: <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment