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

Re: [PATCH] t4203 (mailmap): stop hardcoding commit ids and dates

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 20, 2010, 06:31 UTC
Message-ID
<7vlj5twf1j.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vsk01wf65.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 16 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Jonathan Nieder <jrnieder@gmail.com> writes:
>>
>>> Here's a better fix.  Still no idea about the other failures Ævar
>>> and Thomas were seeing.
>>
>> I saw intermittent failures too.  Thanks for the objid fix.
>
> I found a way to reliably make this fail at test #7.
>
>  $ sh t4203-mailmap.sh </dev/null
>
> Without the input redirection, things seem to work Ok.
>
> Still puzzled...
Ah, of course.
 t/t4203-mailmap.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/t/t4203-mailmap.sh b/t/t4203-mailmap.sh
index a267d07..e818de6 100755
--- a/t/t4203-mailmap.sh
+++ b/t/t4203-mailmap.sh
@@ -114,7 +114,7 @@ test_expect_success 'name entry after email entry' '
 	mkdir -p internal_mailmap &&
 	echo "<bugs@company.xy> <bugs@company.xx>" >internal_mailmap/.mailmap &&
 	echo "Internal Guy <bugs@company.xx>" >>internal_mailmap/.mailmap &&
-	git shortlog >actual &&
+	git shortlog HEAD >actual &&
 	test_cmp expect actual
 '
 
@@ -131,7 +131,7 @@ test_expect_success 'name entry after email entry, case-insensitive' '
 	mkdir -p internal_mailmap &&
 	echo "<bugs@company.xy> <bugs@company.xx>" >internal_mailmap/.mailmap &&
 	echo "Internal Guy <BUGS@Company.xx>" >>internal_mailmap/.mailmap &&
-	git shortlog >actual &&
+	git shortlog HEAD >actual &&
 	test_cmp expect actual
 '
 
Previous: Junio C Hamano
Message 9 of 9 in “don't let mailmap provoke use of freed memory”
  1. don't let mailmap provoke use of freed memoryJim Meyering, Oct 11, 2010
  2. Jonathan NiederOct 11, 2010
  3. Ævar Arnfjörð BjarmasonOct 15, 2010
  4. Jonathan NiederOct 15, 2010
  5. Jonathan NiederOct 15, 2010
  6. t4203 (mailmap): stop hardcoding commit ids and datesJonathan Nieder, Oct 15, 2010
  7. Junio C HamanoOct 17, 2010
  8. Junio C HamanoOct 20, 2010
  9. Junio C HamanoOct 20, 2010

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.