From: Junio C Hamano Date: Mon, 13 Oct 2014 19:46:14 +0000 (-0700) Subject: pack-objects: set number of threads before checking and warning X-Git-Tag: v2.2.0-rc0~19^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/0c45d258ec35c1ef51523dd45e4518bd8a09258c?hp=0c45d258ec35c1ef51523dd45e4518bd8a09258c pack-objects: set number of threads before checking and warning Under NO_PTHREADS build, we warn when delta_search_threads is not set to 1, because that is the only sensible value on a single threaded build. However, the auto detection that kicks in when that variable is set to 0 (e.g. there is no configuration variable or command line option, or an explicit --threads=0 is given from the command line to override the pack.threads configuration to force auto-detection) was not done before the condition to issue this warning was tested. Move the auto-detection code and place it at an appropriate spot. Signed-off-by: Junio C Hamano ---