repository: don't error out if there is no version git will assume the repository format version is 0 if the value is not there. Do the same.