镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

[Outreachy PATCH] t2403: modernize test for directory existence - #2259

Open
shashu8660 wants to merge 1 commit into
gitgitgadget:masterfrom
shashu8660:outreachy1
Open

shashu8660 wants to merge 1 commit into
gitgitgadget:masterfrom
shashu8660:outreachy1

Conversation

@shashu8660

@shashu8660 shashu8660 commented Oct 15, 2026 •

Copy link
Copy Markdown

CC: Kaartic Sivaraam kaartic.sivaraam@gmail.com, Christian Couder christian.couder@gmail.com, Siddharth Asthana siddharthasthana31@gmail.com, Usman Akinyemi usmanakinyemi202@gmail.com, Junio C Hamano gitster@pobox.com

Replace the old-style shell `test -d` commands with Git's modern
`test_path_is_dir` helper function.

This provides better debugging output if the tests were to fail,
as the helper prints a clear error message rather than just failing
silently like `test -d` does.

Signed-off-by: Shashank <shashu8660@gmail.com>
@shashu8660

Copy link
Copy Markdown
Author

/preview

@gitgitgadget

gitgitgadget Bot commented Oct 15, 2026

Copy link
Copy Markdown

Preview email sent as pull.2259.git.1792098419288.gitgitgadget@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant