8000 [WIP] Shallow smart transport support by tiennou · Pull Request #4747 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content

[WIP] Shallow smart transport support #4747

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

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
tests: shallow objects have no parents
  • Loading branch information
tiennou committed Feb 3, 2019
commit a165a6fff5ea56f6b0f52a51f68fe60f440c38f1
13 changes: 13 additions & 0 deletions tests/repo/shallow.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,16 @@ void test_repo_shallow__revwalk_behavior(void)

git_revwalk_free(w);
}

void test_repo_shallow__grafted_object(void)
{
git_commit *commit;

g_repo = cl_git_sandbox_init("shallow.git");

cl_git_pass(git_commit_lookup(&commit, g_repo, &g_shallow_oid));

cl_assert_equal_i(0, git_commit_parentcount(commit));

git_commit_free(commit);
}
0