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

Re: [GSoC] [PATCH 1/1] t0001: replace "test [-d|-f]" with test_path_is_* functions

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2022, 17:23 UTC
Message-ID
<xmqqv8xmvdoa.fsf@gitster.g>
In-Reply-To
<CAJyCBOTBcvgAcSaQ4xs-V=M-im_Umf3ymsWzCAGEmrj6b38pEA@mail.gmail.com>
Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> writes:
Show 10 quoted lines
> On Thu, Feb 10, 2022 at 3:12 PM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> Shaoxuan Yuan <shaoxuan.yuan02@gmail.com> writes:
>>
>> > Since I didn't see this change in seen or next, do you plan to apply it?
>>
>> I actually wasn't, as my understanding of it was primarily your
>> practice.
>
> Understood, thanks for the reply.

FWIW, I have the posted patch plus the following SQUASH??? fix-up parked in the 'seen' branch. As the script is quiescent right now, I do not mind merging it down, now we spent more time on it ;-)

 t/t0001-init.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/t/t0001-init.sh b/t/t0001-init.sh
index c72a28d3a5..d479303efa 100755
--- a/t/t0001-init.sh
+++ b/t/t0001-init.sh
@@ -6,7 +6,8 @@ TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 
 check_config () {
-	if test_path_is_dir "$1" && test_path_is_file "$1/config" && test_path_is_dir "$1/refs"
+	if test_path_is_dir "$1" &&
+	   test_path_is_file "$1/config" && test_path_is_dir "$1/refs"
 	then
 		: happy
 	else
-- 
2.35.1-102-g2b9c120970
Previous: Shaoxuan YuanNext: Shaoxuan Yuan
Message 9 of 13 in “t0001: replace "test [-d|-f]" with test_path_is_* functions”
  1. Shaoxuan YuanJan 21, 2022
  2. [GSoC] [PATCH 1/1] t0001: replace "test [-d|-f]" with test_path_is_* functionsShaoxuan Yuan, Jan 21, 2022
  3. Taylor BlauJan 21, 2022
  4. Junio C HamanoJan 21, 2022
  5. Shaoxuan YuanJan 24, 2022
  6. Shaoxuan YuanFeb 10, 2022
  7. Junio C HamanoFeb 10, 2022
  8. Shaoxuan YuanFeb 10, 2022
  9. Junio C HamanoFeb 10, 2022
  10. Shaoxuan YuanFeb 11, 2022
  11. Junio C HamanoFeb 11, 2022
  12. Christian CouderFeb 14, 2022
  13. Shaoxuan YuanFeb 14, 2022

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.