We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3cbd20 commit 336991dCopy full SHA for 336991d
tests/index/tests.c
@@ -616,6 +616,7 @@ static void assert_write_fails(git_repository *repo, const char *fn_orig)
616
*/
617
fn = git__strdup(fn_orig);
618
replace_char(fn, '/', '_');
619
+ replace_char(fn, ':', '!');
620
621
git_buf_joinpath(&path, "./invalid", fn);
622
@@ -627,6 +628,7 @@ static void assert_write_fails(git_repository *repo, const char *fn_orig)
627
628
629
/* kids, don't try this at home */
630
replace_char((char *)entry->path, '_', '/');
631
+ replace_char((char *)entry->path, '!', ':');
632
633
/* write-tree */
634
cl_git_fail(git_index_write_tree(&expected, index));
@@ -700,6 +702,7 @@ void test_index_tests__honors_protect_filesystems(void)
700
702
assert_write_fails(repo, ".git\xe2\x80\xad/hello");
701
703
assert_write_fails(repo, "git~1/hello");
704
assert_write_fails(repo, ".git\xe2\x81\xaf/hello");
705
+ assert_write_fails(repo, ".git::$INDEX_ALLOCATION/dummy-file");
706
707
git_repository_free(repo);
708
0 commit comments