diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-17 09:50:30 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-17 09:50:30 +0200 |
| commit | 605da51a2cfd86901b6fa5f9cf71111a63ab4418 (patch) | |
| tree | dbe23d26a4cbd93d457c68fdec7b4b10605314ac /tests-clar/refs/branches/delete.c | |
| parent | c62b5ca590fb2f1743f43439b04159b168a36dda (diff) | |
| download | libgit2-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/refs/branches/delete.c')
| -rw-r--r-- | tests-clar/refs/branches/delete.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/refs/branches/delete.c b/tests-clar/refs/branches/delete.c index 7af5a3e86..de90cb734 100644 --- a/tests-clar/refs/branches/delete.c +++ b/tests-clar/refs/branches/delete.c @@ -57,11 +57,11 @@ void test_refs_branches_delete__can_delete_a_branch_even_if_HEAD_is_missing(void git_reference_free(branch); } -void test_refs_branches_delete__can_delete_a_branch_when_HEAD_is_orphaned(void) +void test_refs_branches_delete__can_delete_a_branch_when_HEAD_is_unborn(void) { git_reference *branch; - make_head_orphaned(repo, NON_EXISTING_HEAD); + make_head_unborn(repo, NON_EXISTING_HEAD); cl_git_pass(git_branch_lookup(&branch, repo, "br2", GIT_BRANCH_LOCAL)); cl_git_pass(git_branch_delete(branch)); |
