summaryrefslogtreecommitdiff
path: root/tests-clar/checkout/head.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-09-17 09:50:30 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2013-09-17 09:50:30 +0200
commit605da51a2cfd86901b6fa5f9cf71111a63ab4418 (patch)
treedbe23d26a4cbd93d457c68fdec7b4b10605314ac /tests-clar/checkout/head.c
parentc62b5ca590fb2f1743f43439b04159b168a36dda (diff)
downloadlibgit2-605da51a2cfd86901b6fa5f9cf71111a63ab4418.tar.gz
No such thing as an orphan branch
Unfortunately git-core uses the term "unborn branch" and "orphan branch" interchangeably. However, "orphan" is only really there for the checkout command, which has the `--orphan` option so it doesn't actually create the branch. Branches never have parents, so the distinction of a branch with no parents is odd to begin with. Crucially, the error messages deal with unborn branches, so let's use that.
Diffstat (limited to 'tests-clar/checkout/head.c')
-rw-r--r--tests-clar/checkout/head.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests-clar/checkout/head.c b/tests-clar/checkout/head.c
index 46646f8bf..74c6fb87a 100644
--- a/tests-clar/checkout/head.c
+++ b/tests-clar/checkout/head.c
@@ -16,11 +16,11 @@ void test_checkout_head__cleanup(void)
cl_git_sandbox_cleanup();
}
-void test_checkout_head__orphaned_head_returns_GIT_EORPHANEDHEAD(void)
+void test_checkout_head__unborn_head_returns_GIT_EUNBORNBRANCH(void)
{
- make_head_orphaned(g_repo, NON_EXISTING_HEAD);
+ make_head_unborn(g_repo, NON_EXISTING_HEAD);
- cl_assert_equal_i(GIT_EORPHANEDHEAD, git_checkout_head(g_repo, NULL));
+ cl_assert_equal_i(GIT_EUNBORNBRANCH, git_checkout_head(g_repo, NULL));
}
void test_checkout_head__with_index_only_tree(void)