git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/4] Repository format version check series.

From
Junio C Hamano <junkio@cox.net>
Date
Nov 26, 2005, 01:15 UTC
Message-ID
<7voe48gqg9.fsf@assigned-by-dhcp.cox.net>

This series is what I've been cooking for the past several days, partly based on patch from Martin Atukunda but with hopefully smaller impact.

[PATCH 1/4] Repository format version check. [PATCH 2/4] Check repository format version in enter_repo(). [PATCH 3/4] init-db: check template and repository format. [PATCH 4/4] setup_git_directory(): check repository format version.

The first in the series adds the core.repositoryformatversion configuration item. The current repository format version is defined as version 0, and is the same as not having that in the configuration file.

The second one adds a repository format version check to enter_repo(). This function is used to verify the path given by the user, either from the command line or over the network, is a valid git repository by daemon, upload-pack (which runs on the other end when you run fetch-pack or clone-pack), and receive-pack (which runs on the other end when you run send-pack).

The third one makes sure we do not reinitialize a repository whose format version we do not understand, do not copy template files from unmatching version into a new repository, and record the repository format version in a newly created repository.

The last bit in the series adds the same check code to setup_git_directory(). Along with the earlier change to git-sh-setup that uses git-var to verify the repository, this gives the shell scripts the same repository format version check.

I'll push this out to the "master" sometime over the weekend, and hopefully merge it into "maint" and cut the next 1.0rc on Wednesday. Let's hope that will be the last 1.0rc.

Next: Junio C Hamano
Message 1 of 8 in “Repository format version check series.”
  1. 0/4 Repository format version check series.Junio C Hamano, Nov 26, 2005
  2. What's in master and pu (aka when will 1.0rc4 be out)Junio C Hamano, Nov 27, 2005
  3. Timo HirvonenNov 27, 2005
  4. Linus TorvaldsNov 27, 2005
  5. Junio C HamanoNov 27, 2005
  6. bisect: quote pathnames for eval safety.Junio C Hamano, Nov 28, 2005
  7. Junio C HamanoNov 28, 2005
  8. Martin AtukundaNov 29, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.