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

Re: t5505-remote.29 not working correctly

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 16, 2010, 05:16 UTC
Message-ID
<7v7hpcvobt.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vwrxdueug.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 9 quoted lines
> Brandon Casey <brandon.casey.ctr@nrlssc.navy.mil> writes:
>
>> The test titled 'remote prune to cause a dangling symref' is
>> not linked together with &&'s.  When the &&'s are added, it
>> does not complete successfully.
>
> Hmm, it looks like f8948e2 (remote prune: warn dangling symrefs,
> 2009-02-08) is internally inconsistent.  This is a fix directly on top of
> that commit.

Actually this is a bit deeper than that. We don't get _any_ output to either standard output nor standard error with the recent code.

If we change the test to:
diff --git a/t/t5505-remote.sh b/t/t5505-remote.sh
index a82c5ff..ca88e29 100755
--- a/t/t5505-remote.sh
+++ b/t/t5505-remote.sh
@@ -507,8 +507,8 @@ test_expect_success 'remote prune to cause a dangling symref' '
 	(
 		cd seven &&
 		git remote prune origin
-	) 2>err &&
-	grep "has become dangling" err &&
+	) >err 2>&1 &&
+	grep "has become dangling" err || exit
 
 	: And the dangling symref will not cause other annoying errors
 	(

so it does not matter whether the output is set to standard output or
standard error, we can bisect this, which points at eafb452 (do_one_ref():
null_sha1 check is not about broken ref, 2009-07-22).

v1.6.3 and onwards seem to be broken.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “t5505-remote.29 not working correctly”
  1. Brandon CaseyMar 16, 2010
  2. Junio C HamanoMar 16, 2010
  3. Junio C HamanoMar 16, 2010
  4. refs: ref entry with NULL sha1 is can be a dangling symrefJunio C Hamano, Mar 16, 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.