worktree: allow repository version 1
commite02a7141f83326f7098800fed764061ecf1f0eff
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 22 Feb 2020 20:17:41 +0000 (22 20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Feb 2020 17:33:30 +0000 (24 09:33 -0800)
tree1318e9963b37976a2ed39db967a4e69e82b0ef96
parentefa7ae36c134cc0de6f766c1ab5dfd6b55fab65c
worktree: allow repository version 1

Git supports both repository versions 0 and 1.  These formats are
identical except for the presence of extensions.  When using an
extension, such as for a different hash algorithm, a check for only
version 0 causes the check to fail.  Instead, call
verify_repository_format to verify that we have an appropriate version
and no unknown extensions.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
worktree.c