diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2012-08-20 16:56:45 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2012-09-17 10:48:26 +0200 |
| commit | 3aa443a9511f5b9848d314337b226c41ef3eef84 (patch) | |
| tree | d270260e838a8c69e46588a948522b4ed16f75ac /src/clone.c | |
| parent | e8776d30f7edb570f435cf746d712c696b862bdd (diff) | |
| download | libgit2-3aa443a9511f5b9848d314337b226c41ef3eef84.tar.gz | |
checkout: introduce git_checkout_tree()
Diffstat (limited to 'src/clone.c')
| -rw-r--r-- | src/clone.c | 3 |
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; } |
