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

Re: [PATCH 1/2] t3312-notes-empty: Test that 'git notes' removes empty notes by default

From
Johan Herland <johan@herland.net>
Date
Nov 5, 2014, 08:32 UTC
Message-ID
<CALKQrgdtvfZ+LFn+VSE-yjvJf1zwTZdEov48eDbhvx0JWHpeug@mail.gmail.com>
In-Reply-To
<CAPig+cT4-1bY5tq8KioC8Js3ZUfZCuFEwOZMeoPW4M_brK+QXw@mail.gmail.com>
On Wed, Nov 5, 2014 at 5:10 AM, Eric Sunshine <sunshine@sunshineco.com> wrote:
[...]
> write_script() would allow you to drop the #!/bin/sh and chmod lines.
[...]
> Rather than hard-coding this output, generating it would make the test
> script less fragile:
>
>     git log -1 >expect_missing
[...]
> Each -c/-C case fails for me when trying to read $empty_object. For example:
>
> fatal: Failed to read object 'e69de29bb2d1d6434b8b29ae775ad8c2e48c5391'.
> not ok 5 - 'git notes add -c "$empty_blob"' removes empty note
These are all fixed in the re-roll.
Thanks for the feedback!
...Johan
-- 
Johan Herland, <johan@herland.net>
www.herland.net
Previous: Eric SunshineNext: Junio C Hamano
Message 4 of 5 in “t3312-notes-empty: Test that 'git notes' removes empty notes by default”
  1. 1/2 t3312-notes-empty: Test that 'git notes' removes empty notes by defaultJohan Herland, Nov 5, 2014
  2. 2/2 notes: Add --allow-empty, to allow storing empty notesJohan Herland, Nov 5, 2014
  3. Eric SunshineNov 5, 2014
  4. Johan HerlandNov 5, 2014
  5. Junio C HamanoNov 5, 2014

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.