summaryrefslogtreecommitdiff
path: root/tests-clar/repo/headtree.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-17 03:45:35 -0700
committerVicent Martí <vicent@github.com>2013-09-17 03:45:35 -0700
commitefc9e6700fabc91ea490fcc5ea034b51648c9e88 (patch)
tree08f13e7c4f17a3e35f7342d51363441833ac59f4 /tests-clar/repo/headtree.c
parent38fba8371e4c6c0042645a8bf2ba4aa2f2cdf730 (diff)
parent605da51a2cfd86901b6fa5f9cf71111a63ab4418 (diff)
downloadlibgit2-efc9e6700fabc91ea490fcc5ea034b51648c9e88.tar.gz
Merge pull request #1856 from libgit2/cmn/no-orphans
No such thing as an orphan branch
Diffstat (limited to 'tests-clar/repo/headtree.c')
-rw-r--r--tests-clar/repo/headtree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests-clar/repo/headtree.c b/tests-clar/repo/headtree.c
index 0e7fe93e5..e899ac399 100644
--- a/tests-clar/repo/headtree.c
+++ b/tests-clar/repo/headtree.c
@@ -36,13 +36,13 @@ void test_repo_headtree__can_retrieve_the_root_tree_from_a_non_detached_head(voi
cl_assert(git_oid_streq(git_tree_id(tree), "az"));
}
-void test_repo_headtree__when_head_is_orphaned_returns_EORPHANEDHEAD(void)
+void test_repo_headtree__when_head_is_unborn_returns_EUNBORNBRANCH(void)
{
- make_head_orphaned(repo, NON_EXISTING_HEAD);
+ make_head_unborn(repo, NON_EXISTING_HEAD);
- cl_assert_equal_i(true, git_repository_head_orphan(repo));
+ cl_assert_equal_i(true, git_repository_head_unborn(repo));
- cl_assert_equal_i(GIT_EORPHANEDHEAD, git_repository_head_tree(&tree, repo));
+ cl_assert_equal_i(GIT_EUNBORNBRANCH, git_repository_head_tree(&tree, repo));
}
void test_repo_headtree__when_head_is_missing_returns_ENOTFOUND(void)