diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-17 11:50:30 +0400 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-09-17 11:50:30 +0400 |
commit | 605da51a2cfd86901b6fa5f9cf71111a63ab4418 (patch) | |
tree | dbe23d26a4cbd93d457c68fdec7b4b10605314ac /tests-clar/stash | |
parent | c62b5ca590fb2f1743f43439b04159b168a36dda (diff) |
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/stash')
-rw-r--r-- | tests-clar/stash/save.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/stash/save.c b/tests-clar/stash/save.c index eae116ac5..bb35a3d71 100644 --- a/tests-clar/stash/save.c +++ b/tests-clar/stash/save.c @@ -194,7 +194,7 @@ void test_stash_save__cannot_stash_against_an_unborn_branch(void) cl_git_pass(git_reference_symbolic_create(&head, repo, "HEAD", "refs/heads/unborn", 1)); - cl_assert_equal_i(GIT_EORPHANEDHEAD, + cl_assert_equal_i(GIT_EUNBORNBRANCH, git_stash_save(&stash_tip_oid, repo, signature, NULL, GIT_STASH_DEFAULT)); git_reference_free(head); |