]> git.ipfire.org Git - thirdparty/git.git/commit - ident.c
ident: check for useConfigOnly before auto-detection of name/email
authorMarios Titas <redneb@gmx.com>
Wed, 30 Mar 2016 19:29:42 +0000 (22:29 +0300)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2016 21:57:55 +0000 (14:57 -0700)
commit734c7789aa1055d465e336f618889cc6df478535
tree7e1ff05213579300ac42c1f29646f8655993198c
parent4d5c2956969a6690db2bbb2f3ff40459c09d7646
ident: check for useConfigOnly before auto-detection of name/email

If user.useConfigOnly is set, it does not make sense to try to
auto-detect the name and/or the email.  The auto-detection may
even result in a bogus name and trigger an error message.

Check if the use-config-only is set and die if no explicit name was
given, before attempting to auto-detect, to correct this.

Signed-off-by: Marios Titas <redneb@gmx.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ident.c