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

Re: git archive invocation using sha1 to specify commit

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 29, 2012, 08:46 UTC
Message-ID
<7v7gz6uiv0.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CA+OUE96-mLc0RJZz0g0oBWxdZKeCMQ9xJbg6DjCacN119TFY+A@mail.gmail.com>
Zdenek Crha <zdenek.crha@gmail.com> writes:
Show 5 quoted lines
> In out company we are using git together with source indexing. We
> store a git command for retrieval of source code file that was used
> for building into pdb file(s). Currently,...
> ... I'm not sure whenever ability to export arbitrary sha1 will be
> allowed too.

No, that will be a premium feature that your company _could_ pay for with the source of that "source indexing" system ;-)

Jokes aside, this was part of a security tightening to make sure nobody could reach something that cannot be obtained by cloning, without incurring large computation overhead.

Theoretically we could selectively loosen the restriction [*1*], but it is not very high on our priority list.

[Footnote]

*1* When the given starting point is a raw SHA-1, we could run a single merge_bases_many() to see if any of the refs can reach it, and only serve the tree the check passes, or something.

Previous: Zdenek CrhaNext: Jeff King
Message 2 of 3 in “git archive invocation using sha1 to specify commit”
  1. Zdenek CrhaFeb 29, 2012
  2. Junio C HamanoFeb 29, 2012
  3. Jeff KingFeb 29, 2012

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.