submodule recursing: do not write a config variable twice
commit58b75bd6db45a5108af41b764d617d677f26a6ca
authorStefan Beller <sbeller@google.com>
Fri, 26 May 2017 19:10:10 +0000 (26 12:10 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 May 2017 05:28:53 +0000 (30 14:28 +0900)
tree14ceedcffb95f5d8f07cdf44ef9ab8ebb3c5ae6a
parent234b10d6f1efbb19fe0e3769f188b6b97cd2a519
submodule recursing: do not write a config variable twice

The command line option for '--recurse-submodules' is implemented
using an OPTION_CALLBACK, which takes both the callback (that sets
the file static global variable) as well as passes the same file
static global variable to the option parsing machinery to assign it.
This is fixed in this commit by passing NULL as the variable. The
callback sets it instead

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c
builtin/read-tree.c
builtin/reset.c