Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

conflict tests: checkcore.ignorecase#7026

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ethomson merged 1 commit intolibgit2:mainfromemilazy:push-npwwprvzrmmr
Jan 21, 2025

Conversation

emilazy
Copy link
Contributor

@emilazyemilazy commentedJan 21, 2025
edited
Loading

Not all filesystems on Apple and Windows platforms are case‐insensitive; this test would previously fail on a case‐sensitive APFS volume.

@@ -947,6 +949,8 @@ void test_checkout_conflict__name_mangled_file_exists_in_workdir(void)
cl_git_rewritefile("merge-resolve/test-three.txt~THEIRS",
"Expect case insensitive filesystems to create ~theirs_0");

case_insensitive_fs = git_fs_path_exists("merge-resolve/test-three.txt~ours");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Suggested change
case_insensitive_fs=git_fs_path_exists("merge-resolve/test-three.txt~ours");
case_insensitive_fs=cl_repo_get_bool(g_repo,"core.ignorecase");

@ethomson
Copy link
Member

Thanks! An embarrassing oversight that I think that I introduced. Now we have a simple one-liner to query the repo's configuration, so I wonder if checkingcore.ignorecase also works? That would likely be the most compatible query, IMO.

Not all filesystems on Apple and Windows platforms arecase‐insensitive; this test would previously fail on acase‐sensitive APFS volume.
@emilazyemilazy changed the titleconflict tests: check file system case‐sensitivityconflict tests: checkcore.ignorecaseJan 21, 2025
@emilazy
Copy link
ContributorAuthor

Looks like that works; let me know what you think!

@ethomson
Copy link
Member

Thanks for the fix!

@ethomsonethomson merged commit1b348a3 intolibgit2:mainJan 21, 2025
19 checks passed
@emilazyemilazy deleted the push-npwwprvzrmmr branchJanuary 21, 2025 21:49
@emilazy
Copy link
ContributorAuthor

Thank you for the quick review and merge! 💜

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

@ethomsonethomsonethomson left review comments

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@emilazy@ethomson

[8]ページ先頭

©2009-2025 Movatter.jp