Ugh. So you just made a commit, take a look at the revlog and realize that you did it as root. How embarrassing. Assuming you haven’t pushed, however, you can fix it without much trouble.
Try this:
$ git commit --amend --author "Your Name <you@domain.com>"