summaryrefslogtreecommitdiff
path: root/src/clone.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-11-17 19:54:47 -0800
committerVicent Marti <tanoku@gmail.com>2012-11-17 19:55:06 -0800
commit9b965c01e06e695e8ee51a1cc080cc1509cd4962 (patch)
tree6868aeb349ce620bee6bccaa0b6069b223fd6a13 /src/clone.c
parent0066955d9752cab8f8533c0dddfc95d08ad13e33 (diff)
downloadlibgit2-more-api-tweaks.tar.gz
More external API cleanupmore-api-tweaks
Diffstat (limited to 'src/clone.c')
-rw-r--r--src/clone.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/clone.c b/src/clone.c
index 9ef6f8100..0548dc42c 100644
--- a/src/clone.c
+++ b/src/clone.c
@@ -28,18 +28,18 @@ static int create_branch(
const git_oid *target,
const char *name)
{
- git_object *head_obj = NULL;
+ git_commit *head_obj = NULL;
git_reference *branch_ref;
int error;
/* Find the target commit */
- if ((error = git_object_lookup(&head_obj, repo, target, GIT_OBJ_ANY)) < 0)
+ if ((error = git_commit_lookup(&head_obj, repo, target)) < 0)
return error;
/* Create the new branch */
error = git_branch_create(&branch_ref, repo, name, head_obj, 0);
- git_object_free(head_obj);
+ git_commit_free(head_obj);
if (!error)
*branch = branch_ref;
@@ -381,9 +381,9 @@ int git_clone(
git_repository **out,
const char *origin_url,
const char *workdir_path,
+ git_checkout_opts *checkout_opts,
git_transfer_progress_callback fetch_progress_cb,
- void *fetch_progress_payload,
- git_checkout_opts *checkout_opts)
+ void *fetch_progress_payload)
{
assert(out && origin_url && workdir_path);