summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/merge.c4
-rw-r--r--src/revert.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/merge.c b/src/merge.c
index 45387d4ad..00415cbc0 100644
--- a/src/merge.c
+++ b/src/merge.c
@@ -1575,6 +1575,8 @@ int git_merge_trees(
*out = NULL;
+ GITERR_CHECK_VERSION(given_opts, GIT_MERGE_TREE_OPTS_VERSION, "git_merge_tree_opts");
+
if ((error = merge_tree_normalize_opts(repo, &opts, given_opts)) < 0)
return error;
@@ -2427,6 +2429,8 @@ int git_merge(
*out = NULL;
+ GITERR_CHECK_VERSION(given_opts, GIT_MERGE_OPTS_VERSION, "git_merge_opts");
+
if (their_heads_len != 1) {
giterr_set(GITERR_MERGE, "Can only merge a single branch");
return -1;
diff --git a/src/revert.c b/src/revert.c
index 6cfd591b4..4ba329907 100644
--- a/src/revert.c
+++ b/src/revert.c
@@ -179,6 +179,8 @@ int git_revert(
assert(repo && commit);
+ GITERR_CHECK_VERSION(given_opts, GIT_REVERT_OPTS_VERSION, "git_revert_opts");
+
if ((error = git_repository__ensure_not_bare(repo, "revert")) < 0)
return error;