@@ -22,7 +22,7 @@ void test_repo_open__cleanup(void)
2222 if (git_fs_path_isdir ("alternate" ))
2323 git_futils_rmdir_r ("alternate" , NULL , GIT_RMDIR_REMOVE_FILES );
2424
25- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_NONE );
25+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_NONE );
2626
2727 cl_git_pass (git_libgit2_opts (GIT_OPT_SET_SEARCH_PATH , GIT_CONFIG_LEVEL_GLOBAL , config_path .ptr ));
2828 git_buf_dispose (& config_path );
@@ -481,16 +481,16 @@ void test_repo_open__validates_dir_ownership(void)
481481 cl_git_pass (cl_rename ("empty_standard_repo/.gitted" , "empty_standard_repo/.git" ));
482482
483483 /* When the current user owns the repo config, that's acceptable */
484- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_CURRENT_USER );
484+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_CURRENT_USER );
485485 cl_git_pass (git_repository_open (& repo , "empty_standard_repo" ));
486486 git_repository_free (repo );
487487
488488 /* When the system user owns the repo config, fail */
489- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_SYSTEM );
489+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_ADMINISTRATOR );
490490 cl_git_fail (git_repository_open (& repo , "empty_standard_repo" ));
491491
492492 /* When an unknown user owns the repo config, fail */
493- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_OTHER );
493+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_OTHER );
494494 cl_git_fail (git_repository_open (& repo , "empty_standard_repo" ));
495495}
496496
@@ -503,16 +503,16 @@ void test_repo_open__validates_bare_repo_ownership(void)
503503 cl_fixture_sandbox ("testrepo.git" );
504504
505505 /* When the current user owns the repo config, that's acceptable */
506- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_CURRENT_USER );
506+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_CURRENT_USER );
507507 cl_git_pass (git_repository_open (& repo , "testrepo.git" ));
508508 git_repository_free (repo );
509509
510510 /* When the system user owns the repo config, fail */
511- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_SYSTEM );
511+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_ADMINISTRATOR );
512512 cl_git_fail (git_repository_open (& repo , "testrepo.git" ));
513513
514514 /* When an unknown user owns the repo config, fail */
515- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_OTHER );
515+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_OTHER );
516516 cl_git_fail (git_repository_open (& repo , "testrepo.git" ));
517517}
518518
@@ -528,7 +528,7 @@ void test_repo_open__can_allowlist_dirs_with_problematic_ownership(void)
528528 cl_fixture_sandbox ("empty_standard_repo" );
529529 cl_git_pass (cl_rename ("empty_standard_repo/.gitted" , "empty_standard_repo/.git" ));
530530
531- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_OTHER );
531+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_OTHER );
532532 cl_git_fail (git_repository_open (& repo , "empty_standard_repo" ));
533533
534534 /* Add safe.directory options to the global configuration */
@@ -572,7 +572,7 @@ void test_repo_open__can_allowlist_bare_gitdir(void)
572572
573573 cl_fixture_sandbox ("testrepo.git" );
574574
575- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_OTHER );
575+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_OTHER );
576576 cl_git_fail (git_repository_open (& repo , "testrepo.git" ));
577577
578578 /* Add safe.directory options to the global configuration */
@@ -617,7 +617,7 @@ void test_repo_open__can_reset_safe_directory_list(void)
617617 cl_fixture_sandbox ("empty_standard_repo" );
618618 cl_git_pass (cl_rename ("empty_standard_repo/.gitted" , "empty_standard_repo/.git" ));
619619
620- git_fs_path__set_owner (GIT_FS_PATH_MOCK_OWNER_OTHER );
620+ git_fs_path__set_owner (GIT_FS_PATH_OWNER_OTHER );
621621 cl_git_fail (git_repository_open (& repo , "empty_standard_repo" ));
622622
623623 /* Add safe.directory options to the global configuration */
0 commit comments