From 605da51a2cfd86901b6fa5f9cf71111a63ab4418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Tue, 17 Sep 2013 09:50:30 +0200 Subject: 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. --- src/checkout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/checkout.c') diff --git a/src/checkout.c b/src/checkout.c index aae354ca6..eb92e8fd6 100644 --- a/src/checkout.c +++ b/src/checkout.c @@ -1232,7 +1232,7 @@ static int checkout_data_init( error = checkout_lookup_head_tree(&data->opts.baseline, repo); - if (error == GIT_EORPHANEDHEAD) { + if (error == GIT_EUNBORNBRANCH) { error = 0; giterr_clear(); } -- cgit v1.2.1