diff options
Diffstat (limited to 'tests/filter/bare.c')
-rw-r--r-- | tests/filter/bare.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/filter/bare.c b/tests/filter/bare.c index f8e34232f..8402638ce 100644 --- a/tests/filter/bare.c +++ b/tests/filter/bare.c @@ -137,13 +137,10 @@ void test_filter_bare__from_specific_commit_one(void) git_blob_filter_options opts = GIT_BLOB_FILTER_OPTIONS_INIT; git_blob *blob; git_buf buf = { 0 }; - git_oid commit_id; - - cl_git_pass(git_oid_fromstr(&commit_id, "b8986fec0f7bde90f78ac72706e782d82f24f2f0")); opts.flags |= GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES; opts.flags |= GIT_BLOB_FILTER_ATTRIBUTES_FROM_COMMIT; - opts.commit_id = &commit_id; + cl_git_pass(git_oid_fromstr(&opts.attr_commit_id, "b8986fec0f7bde90f78ac72706e782d82f24f2f0")); cl_git_pass(git_revparse_single( (git_object **)&blob, g_repo, "055c872")); /* ident */ @@ -165,13 +162,10 @@ void test_filter_bare__from_specific_commit_with_no_attributes_file(void) git_blob_filter_options opts = GIT_BLOB_FILTER_OPTIONS_INIT; git_blob *blob; git_buf buf = { 0 }; - git_oid commit_id; - - cl_git_pass(git_oid_fromstr(&commit_id, "5afb6a14a864e30787857dd92af837e8cdd2cb1b")); opts.flags |= GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES; opts.flags |= GIT_BLOB_FILTER_ATTRIBUTES_FROM_COMMIT; - opts.commit_id = &commit_id; + cl_git_pass(git_oid_fromstr(&opts.attr_commit_id, "5afb6a14a864e30787857dd92af837e8cdd2cb1b")); cl_git_pass(git_revparse_single( (git_object **)&blob, g_repo, "799770d")); /* all-lf */ |