Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2012-10-25 19:16:13 +0400
committerVicent Martí <vicent@github.com>2012-10-25 19:16:13 +0400
commit1eb8cd7f879dbd2fc3c3c0d341f4dd6ed636b97b (patch)
tree65219886d770f0d7deb86e4a5e575f73f35f2df6 /src/reset.c
parent5edb846e03961cac06d1aab4cb5e2329936837f1 (diff)
parent1e3b8ed5cfe784f73a123c33c90f573742d8839e (diff)
Merge pull request #990 from ben/clone-callbacks
Progress callbacks
Diffstat (limited to 'src/reset.c')
-rw-r--r--src/reset.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/reset.c b/src/reset.c
index 66338e655..7df1c1a57 100644
--- a/src/reset.c
+++ b/src/reset.c
@@ -116,7 +116,7 @@ int git_reset(
goto cleanup;
}
- if (git_index_read_tree(index, tree, NULL) < 0) {
+ if (git_index_read_tree(index, tree) < 0) {
giterr_set(GITERR_INDEX, "%s - Failed to update the index.", ERROR_MSG);
goto cleanup;
}
@@ -142,7 +142,7 @@ int git_reset(
| GIT_CHECKOUT_OVERWRITE_MODIFIED
| GIT_CHECKOUT_REMOVE_UNTRACKED;
- if (git_checkout_index(repo, &opts, NULL) < 0) {
+ if (git_checkout_index(repo, &opts) < 0) {
giterr_set(GITERR_INDEX, "%s - Failed to checkout the index.", ERROR_MSG);
goto cleanup;
}