summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c
index 29ce39107..e2d3d346b 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -20,7 +20,7 @@
static void clear_parents(git_commit *commit)
{
- unsigned int i;
+ size_t i;
for (i = 0; i < commit->parent_ids.length; ++i) {
git_oid *parent = git_vector_get(&commit->parent_ids, i);
@@ -121,7 +121,7 @@ int git_commit_create(
git_buf_free(&commit);
if (update_ref != NULL)
- return git_reference__update(repo, oid, update_ref);
+ return git_reference__update_terminal(repo, update_ref, oid);
return 0;