diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-26 11:28:47 -0400 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-26 17:46:07 -0400 |
| commit | 46508fe64737c2fe71d9e3221c56fbe0fae6996c (patch) | |
| tree | 9345c682a32678d87574e3d8e7c2f7ea29fbd559 /tests | |
| parent | f5a9f0a2587f4fa2d02ee74b0522a0fd99fabe98 (diff) | |
| download | libgit2-46508fe64737c2fe71d9e3221c56fbe0fae6996c.tar.gz | |
attr_file: don't take the `repo` as an argethomson/attr_longpaths
The `repo` argument is now unnecessary. Remove it.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/attr/lookup.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/attr/lookup.c b/tests/attr/lookup.c index bfb2e872f..f19f38fbb 100644 --- a/tests/attr/lookup.c +++ b/tests/attr/lookup.c @@ -13,7 +13,7 @@ void test_attr_lookup__simple(void) cl_assert_equal_s(cl_fixture("attr/attr0"), file->entry->path); cl_assert(file->rules.length == 1); - cl_git_pass(git_attr_path__init(&path, NULL, "test", NULL, GIT_DIR_FLAG_UNKNOWN)); + cl_git_pass(git_attr_path__init(&path, "test", NULL, GIT_DIR_FLAG_UNKNOWN)); cl_assert_equal_s("test", path.path); cl_assert_equal_s("test", path.basename); cl_assert(!path.is_dir); @@ -36,7 +36,7 @@ static void run_test_cases(git_attr_file *file, struct attr_expected *cases, int int error; for (c = cases; c->path != NULL; c++) { - cl_git_pass(git_attr_path__init(&path, NULL, c->path, NULL, GIT_DIR_FLAG_UNKNOWN)); + cl_git_pass(git_attr_path__init(&path, c->path, NULL, GIT_DIR_FLAG_UNKNOWN)); if (force_dir) path.is_dir = 1; @@ -133,7 +133,7 @@ void test_attr_lookup__match_variants(void) cl_assert_equal_s(cl_fixture("attr/attr1"), file->entry->path); cl_assert(file->rules.length == 10); - cl_git_pass(git_attr_path__init(&path, NULL, "/testing/for/pat0", NULL, GIT_DIR_FLAG_UNKNOWN)); + cl_git_pass(git_attr_path__init(&path, "/testing/for/pat0", NULL, GIT_DIR_FLAG_UNKNOWN)); cl_assert_equal_s("pat0", path.basename); run_test_cases(file, cases, 0); |
