Introduce 'submodule.recurse' option for worktree manipulators
[gitweb.git] / builtin / pack-objects.c
index 9b4ba8a80d7f0ac160467138507358f164b7af3e..efa21a15dd939075af0525dcd7e6646ac453999a 100644 (file)
@@ -2472,8 +2472,10 @@ static int git_pack_config(const char *k, const char *v, void *cb)
                        die("invalid number of threads specified (%d)",
                            delta_search_threads);
 #ifdef NO_PTHREADS
-               if (delta_search_threads != 1)
+               if (delta_search_threads != 1) {
                        warning("no threads support, ignoring %s", k);
+                       delta_search_threads = 0;
+               }
 #endif
                return 0;
        }