summaryrefslogtreecommitdiff
path: root/tests-clar/clone/empty.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/clone/empty.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/clone/empty.c')
-rw-r--r--tests-clar/clone/empty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/clone/empty.c b/tests-clar/clone/empty.c
index f92fa6cbb..d9dc24fde 100644
--- a/tests-clar/clone/empty.c
+++ b/tests-clar/clone/empty.c
@@ -44,7 +44,7 @@ void test_clone_empty__can_clone_an_empty_local_repo_barely(void)
g_options.bare = true;
cl_git_pass(git_clone(&g_repo_cloned, "./empty_bare.git", "./empty", &g_options));
- /* Although the HEAD is orphaned... */
+ /* Although the HEAD is unborn... */
cl_assert_equal_i(GIT_ENOTFOUND, git_reference_lookup(&ref, g_repo_cloned, local_name));
/* ...one can still retrieve the name of the remote tracking reference */
@@ -59,7 +59,7 @@ void test_clone_empty__can_clone_an_empty_local_repo_barely(void)
cl_assert_equal_s(expected_remote_name, buffer);
- /* ...even when the remote HEAD is orphaned as well */
+ /* ...even when the remote HEAD is unborn as well */
cl_assert_equal_i(GIT_ENOTFOUND, git_reference_lookup(&ref, g_repo_cloned,
expected_tracked_branch_name));
}