summaryrefslogtreecommitdiff
path: root/t/t1302-repo-version.sh
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2020-07-16 06:28:18 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-07-16 16:36:39 (GMT)
commit62f2eca6065d0c27b0ea3b7806a590466ea04960 (patch)
treeeffed1e9c86e1cfc14502ae0afbf15affb11329f /t/t1302-repo-version.sh
parent11664196ac15b0382793ec0923e56a103e973bc9 (diff)
downloadgit-62f2eca6065d0c27b0ea3b7806a590466ea04960.zip
git-62f2eca6065d0c27b0ea3b7806a590466ea04960.tar.gz
git-62f2eca6065d0c27b0ea3b7806a590466ea04960.tar.bz2
repository: allow repository format upgrade with extensions
Now that we officially permit repository extensions in repository format v0, permit upgrading a repository with extensions from v0 to v1 as well. For example, this means a repository where the user has set "extensions.preciousObjects" can use "git fetch --filter=blob:none origin" to upgrade the repository to use v1 and the partial clone extension. To avoid mistakes, continue to forbid repository format upgrades in v0 repositories with an unrecognized extension. This way, a v0 user using a misspelled extension field gets a chance to correct the mistake before updating to the less forgiving v1 format. While we're here, make the error message for failure to upgrade the repository format a bit shorter, and present it as an error, not a warning. Reported-by: Huan Huan Chen <huanhuanchen@google.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1302-repo-version.sh')
0 files changed, 0 insertions, 0 deletions