From: Ben Knoble Date: Tue, 24 Nov 2026 12:51:04 GMT Subject: Re: [PATCH] t1501: don't reassign EMPTY_BLOB and EMPTY_TREE Message-ID: In-Reply-To: <0e64c973-4ad1-4eaa-938e-f9d60418562a@web.de> > Le 24 nov. 2026 à 04:16, René Scharfe a écrit : > > The variables EMPTY_BLOB AND EMPTY_TREE are already set by test-lib.sh, > so just use them. Nit: downcase and? > > Signed-off-by: René Scharfe > --- > t/t1501-work-tree.sh | 2 -- > 1 file changed, 2 deletions(-) > > 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 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/") && > -- > 2.56.1 Nice simplification. A future reader may wonder what sets those, but git-grep turns them up.