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

Re: [PATCHv4] sha1_file: fix iterating loose alternate objects

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 2, 2015, 20:00 UTC
Message-ID
<xmqqk300t772.fsf@gitster.dls.corp.google.com>
In-Reply-To
<4727F1DC-2FC3-49BE-8C6D-0C4D7D8B107C@jonathonmah.com>
Jonathon Mah <me@jonathonmah.com> writes:
Show 13 quoted lines
> +test_expect_success 'prune: handle alternate object database' '
> +	test_create_repo A &&
> +		(cd A &&
> +		echo "Hello World" >file1 &&
> +		git add file1 &&
> +		git commit -m "Initial commit" file1) &&
> +	git clone -s A B &&
> +		(cd B &&
> +		echo "foo bar" >file2 &&
> +		git add file2 &&
> +		git commit -m "next commit" file2 &&
> +		git prune)
> +'

The issue does not have much to do with introducing new path to the cloned repository, or the original having any specific content for that matter, so I am tempted to simplify the above to something like this intead:

	test_create_repo A &&
	git -C A commit --allow-empty -m "initial commit" &&
	git clone --shared A B &&
	git -C B commit --allow-empty -m "next commit" &&
	git -C B prune
Thanks.
Previous: Junio C HamanoNext: Jeff King
Message 4 of 5 in “[PATCHv4] sha1_file: fix iterating loose alternate objects”
  1. Jonathon MahFeb 2, 2015
  2. Jeff KingFeb 2, 2015
  3. Junio C HamanoFeb 2, 2015
  4. Junio C HamanoFeb 2, 2015
  5. Jeff KingFeb 2, 2015

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.