summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-09-17 03:45:35 -0700
committerVicent Martí <vicent@github.com>2013-09-17 03:45:35 -0700
commitefc9e6700fabc91ea490fcc5ea034b51648c9e88 (patch)
tree08f13e7c4f17a3e35f7342d51363441833ac59f4 /src/clone.c
parent38fba8371e4c6c0042645a8bf2ba4aa2f2cdf730 (diff)
parent605da51a2cfd86901b6fa5f9cf71111a63ab4418 (diff)
downloadlibgit2-efc9e6700fabc91ea490fcc5ea034b51648c9e88.tar.gz
Merge pull request #1856 from libgit2/cmn/no-orphans
No such thing as an orphan branch
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c
index 9f47e07b6..ff251be1b 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -415,7 +415,7 @@ static bool should_checkout(
if (opts->checkout_strategy == GIT_CHECKOUT_NONE)
return false;
- return !git_repository_head_orphan(repo);
+ return !git_repository_head_unborn(repo);
}
static void normalize_options(git_clone_options *dst, const git_clone_options *src, git_repository_init_options *initOptions)