summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-07-26 13:12:21 -0700
committerBen Straub <bstraub@github.com>2012-07-26 13:12:21 -0700
commitb401bace1b28ac23990382605791eddbeda09d9b (patch)
treec6611b78a99a3fdcbac9084deac2ab397b6fe639 /src/clone.c
parentef9905c9902a9ffad71c8acddec74dc0d8e866de (diff)
downloadlibgit2-b401bace1b28ac23990382605791eddbeda09d9b.tar.gz
Restructure for better checkout options
* Removed the #define for defaults * Promoted progress structure to top-level API call argument
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/clone.c b/src/clone.c
index 7ce391136..47bd16d84 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -250,6 +250,7 @@ int git_clone(git_repository **out,
const char *origin_url,
const char *workdir_path,
git_indexer_stats *fetch_stats,
+ git_indexer_stats *checkout_stats,
git_checkout_opts *checkout_opts)
{
int retcode = GIT_ERROR;
@@ -257,7 +258,7 @@ int git_clone(git_repository **out,
assert(out && origin_url && workdir_path);
if (!(retcode = clone_internal(out, origin_url, workdir_path, fetch_stats, 0))) {
- retcode = git_checkout_head(*out, checkout_opts);
+ retcode = git_checkout_head(*out, checkout_opts, checkout_stats);
}
return retcode;