init: use setup.c's repo version verification
commit94ce167249781d2c80ba28412d853c426d41a55a
authorJeff King <peff@peff.net>
Fri, 11 Mar 2016 22:37:11 +0000 (11 17:37 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 11 Mar 2016 23:02:23 +0000 (11 15:02 -0800)
tree23817d0a97e4ff2482aae05a71d3a65d3831ec9e
parent2cc7c2c737f2af16915b3d6cb6245111e1349609
init: use setup.c's repo version verification

We check our templates to make sure they are from a
version of git we understand (otherwise we would init a
repository we cannot ourselves run in!). But our simple
integer check has fallen behind the times. Let's use the
helpers that setup.c provides to do it right.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/init-db.c