8000 transport: do not filter tags based on ref dir in local by rindeal · Pull Request #6881 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

transport: do not filter tags based on ref dir in local #6881

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/libgit2/transports/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ static int add_ref(transport_local *t, const char *name)
return error;
}

/* If it's not a tag, we don't need to try to peel it */
if (git__prefixcmp(name, GIT_REFS_TAGS_DIR))
return 0;

if ((error = git_object_lookup(&obj, t->repo, &head->oid, GIT_OBJECT_ANY)) < 0)
return error;

Expand Down
6 changes: 3 additions & 3 deletions tests/libgit2/network/remote/local.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void test_network_remote_local__retrieve_advertised_references(void)

cl_git_pass(git_remote_ls(&refs, &refs_len, remote));

cl_assert_equal_i(refs_len, 30);
cl_assert_equal_i(refs_len, 31);
}

void test_network_remote_local__retrieve_advertised_before_connect(void)
Expand All @@ -85,7 +85,7 @@ void test_network_remote_local__retrieve_advertised_references_after_disconnect(

cl_git_pass(git_remote_ls(&refs, &refs_len, remote));

cl_assert_equal_i(refs_len, 30);
cl_assert_equal_i(refs_len, 31);
}

void test_network_remote_local__retrieve_advertised_references_from_spaced_repository(void)
Expand All @@ -100,7 +100,7 @@ void test_network_remote_local__retrieve_advertised_references_from_spaced_repos

cl_git_pass(git_remote_ls(&refs, &refs_len, remote));

cl_assert_equal_i(refs_len, 30);
cl_assert_equal_i(refs_len, 31);

git_remote_free(remote); /* Disconnect from the "spaced repo" before the cleanup */
remote = NULL;
Expand Down
Loading
0