Merge branch 'jk/ident-loosen-getpwuid' into maint
commite54d0f5a025e124b27aab3381711721b73d5b68e
authorJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2016 22:02:57 +0000 (4 14:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 4 Jan 2016 22:02:57 +0000 (4 14:02 -0800)
treec89b115dfcf332b8c218b175387a5e370a276bc6
parent06b5c9304d77b2f3ffea7ea16b9d306a84cd5e93
parent92bcbb9b338dd27f0fd4245525093c4bce867f3d
Merge branch 'jk/ident-loosen-getpwuid' into maint

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
ident.c