update-all-config.pl: validate core.repositoryformatversion
commit7d90a3d6104b1d766df17ba078443a78b6e9d747
authorKyle J. McKay <mackyle@gmail.com>
Sat, 16 Dec 2017 12:16:16 +0000 (16 04:16 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 16 Dec 2017 12:16:16 +0000 (16 04:16 -0800)
treecebe21e282346b8e5eb414aa66534e18e297fa3d
parenta90ce1bcd27f977927b3ceafefa9616c403613b2
update-all-config.pl: validate core.repositoryformatversion

Far too many things do not work properly if core.repositoryformatversion
somehow gets left unset or worse set to an invalid value.

Validate the core.repositoryformatversion setting and add it if
missing or replace it if invalid.

The initial "git init" should always write a correct value for this
setting.

Just in case, we leave values 2, 3, 4 and 5 alone with a warning.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
toolbox/update-all-config.pl