]> source.dussan.org Git - jgit.git/commit
Compare repository format version as parsed long 17/5217/5
authorKevin Sawicki <kevin@github.com>
Mon, 12 Mar 2012 17:00:52 +0000 (10:00 -0700)
committerChris Aniszczyk <zx@twitter.com>
Wed, 21 Mar 2012 20:59:39 +0000 (13:59 -0700)
commit7aeea3b27c86e638dae2328929769703db5f1a89
tree9d99d831831dc0ca12d46621ea67c580d5b58cc6
parentfd0c468b7a181062eee910c655ec843950a7b51c
Compare repository format version as parsed long

This allows repositoryies with a missing repositoryformatversion
config value to be successfully opened but still throws exceptions
when the value is a non-long or greater than zero.

git-core attempts to parse this config value as a long as well
and defaults to 0 if the value is missing.

Bug: 368697
Change-Id: I4a93117afca37e591e8e0ab4d2f2eef4273f0cc9
Signed-off-by: Chris Aniszczyk <zx@twitter.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/FileRepositoryBuilderTest.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/storage/file/T0003_BasicTest.java
org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java