Commit 3bdcea88 by Jameson Miller Committed by Carlos Martín Nieto

Check rebase options version on public entry points

parent 7d8e4e30
...@@ -634,7 +634,7 @@ int git_rebase_init( ...@@ -634,7 +634,7 @@ int git_rebase_init(
*out = NULL; *out = NULL;
GITERR_CHECK_VERSION(given_opts, GIT_MERGE_OPTIONS_VERSION, "git_merge_options"); GITERR_CHECK_VERSION(given_opts, GIT_REBASE_OPTIONS_VERSION, "git_rebase_options");
if (!onto) if (!onto)
onto = upstream; onto = upstream;
...@@ -1058,6 +1058,8 @@ int git_rebase_finish( ...@@ -1058,6 +1058,8 @@ int git_rebase_finish(
assert(rebase); assert(rebase);
GITERR_CHECK_VERSION(given_opts, GIT_REBASE_OPTIONS_VERSION, "git_rebase_options");
if ((error = rebase_normalize_opts(rebase->repo, &opts, given_opts)) < 0) if ((error = rebase_normalize_opts(rebase->repo, &opts, given_opts)) < 0)
goto done; goto done;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment