🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
1 messages
1 total messages Started by Junio C Hamano Tue, 24 Nov 2026 20:29
Re: [PATCH] t1501: don't reassign EMPTY_BLOB and EMPTY_TREE
#3732
Author: Junio C Hamano
Date: Tue, 24 Nov 2026 20:29
31 lines
13742 bytes
René Scharfe <l.s.r@web.de> writes:

> The variables EMPTY_BLOB AND EMPTY_TREE are already set by test-lib.sh,
> so just use them.
>
> Signed-off-by: René Scharfe <l.s.r@web.de>
> ---
>  t/t1501-work-tree.sh | 2 --
>  1 file changed, 2 deletions(-)

Nice spotting.  Even though the version in test-lib.sh has a certain
"Yuck" factor by relying on hardcoded values in oid-info/hash-info file,
we already rely on them everywhere, so there is no good excuse not to
use them.

Will queue.  Thanks.

> diff --git a/t/t1501-work-tree.sh b/t/t1501-work-tree.sh
> index 8c94ac2e70..e6f43b0fb8 100755
> --- a/t/t1501-work-tree.sh
> +++ b/t/t1501-work-tree.sh
> @@ -5,8 +5,6 @@ test_description='test separate work tree'
>  . ./test-lib.sh
>  
>  test_expect_success 'setup' '
> -	EMPTY_TREE=$(git write-tree) &&
> -	EMPTY_BLOB=$(git hash-object -t blob --stdin </dev/null) &&
>  	CHANGED_BLOB=$(echo changed | git hash-object -t blob --stdin) &&
>  	EMPTY_BLOB7=$(echo $EMPTY_BLOB | sed "s/\(.......\).*/\1/") &&
>  	CHANGED_BLOB7=$(echo $CHANGED_BLOB | sed "s/\(.......\).*/\1/") &&
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads