Merge branch 'jk/ident-loosen-getpwuid'
authorJunio C Hamano <gitster@pobox.com>
Mon, 21 Dec 2015 18:59:07 +0000 (10:59 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Dec 2015 18:59:07 +0000 (10:59 -0800)
commit5498c57cdd637eb4f42ce8e296ce9ca4ab66e289
tree2806f731354fe228714c4811b9676378338ba43e
parent7aaff08f3996eceadc98a531ef0faa8d7bae955e
parent92bcbb9b338dd27f0fd4245525093c4bce867f3d
Merge branch 'jk/ident-loosen-getpwuid'

When getpwuid() on the system returned NULL (e.g. the user is not
in the /etc/passwd file or other uid-to-name mappings), the
codepath to find who the user is to record it in the reflog barfed
and died.  Loosen the check in this codepath, which already accepts
questionable ident string (e.g. host part of the e-mail address is
obviously bogus), and in general when we operate fmt_ident() function
in non-strict mode.

* jk/ident-loosen-getpwuid:
  ident: loosen getpwuid error in non-strict mode
  ident: keep a flag for bogus default_email
  ident: make xgetpwuid_self() a static local helper
git-compat-util.h
ident.c
wrapper.c