summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-08-20 16:56:45 +0200
committernulltoken <emeric.fermas@gmail.com>2012-09-17 10:48:26 +0200
commit3aa443a9511f5b9848d314337b226c41ef3eef84 (patch)
treed270260e838a8c69e46588a948522b4ed16f75ac /src/clone.c
parente8776d30f7edb570f435cf746d712c696b862bdd (diff)
downloadlibgit2-3aa443a9511f5b9848d314337b226c41ef3eef84.tar.gz
checkout: introduce git_checkout_tree()
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clone.c b/src/clone.c
index c4f6ec97e..80a13d0f2 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -235,9 +235,8 @@ int git_clone(git_repository **out,
assert(out && origin_url && workdir_path);
- if (!(retcode = clone_internal(out, origin_url, workdir_path, fetch_stats, 0))) {
+ if (!(retcode = clone_internal(out, origin_url, workdir_path, fetch_stats, 0)))
retcode = git_checkout_head(*out, checkout_opts, checkout_stats);
- }
return retcode;
}