summaryrefslogtreecommitdiff
path: root/hex.c
diff options
context:
space:
mode:
authorPaul Tan <pyokagan@gmail.com>2015-08-04 13:52:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-05 05:02:11 (GMT)
commit5e4f9cff3cf2c6398f7abbbb0631dde8063a6fdc (patch)
treef4e5c8a8b4a6a04a4845efd3f6a1a3247464557b /hex.c
parentc2676cde9f2c2a67b3860f7fc69e4dc8597e505f (diff)
downloadgit-5e4f9cff3cf2c6398f7abbbb0631dde8063a6fdc.zip
git-5e4f9cff3cf2c6398f7abbbb0631dde8063a6fdc.tar.gz
git-5e4f9cff3cf2c6398f7abbbb0631dde8063a6fdc.tar.bz2
builtin-am: check for valid committer ident
When commit_tree() is called, if the user does not have an explicit committer ident configured, it will attempt to construct a default committer ident based on the user's and system's info (e.g. gecos field, hostname etc.) However, if a default committer ident is unable to be constructed, commit_tree() will die(), but at this point of git-am's execution, there will already be changes made to the index and work tree. This can be confusing to new users, and as such since d64e6b0 (Keep Porcelainish from failing by broken ident after making changes., 2006-02-18) git-am.sh will check to see if the committer ident has been configured, or a default one can be constructed, before even starting to apply patches. Re-implement this in builtin/am.c. Signed-off-by: Paul Tan <pyokagan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hex.c')
0 files changed, 0 insertions, 0 deletions