Skip to content

Commit de84d9b

Browse files
committed
Merge pull request libgit2#2899 from libgit2/jamill/rebase_opt_ver_check
Check rebase options version on public entry points
2 parents d24a531 + 02eb149 commit de84d9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rebase.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ int git_rebase_init(
634634

635635
*out = NULL;
636636

637-
GITERR_CHECK_VERSION(given_opts, GIT_MERGE_OPTIONS_VERSION, "git_merge_options");
637+
GITERR_CHECK_VERSION(given_opts, GIT_REBASE_OPTIONS_VERSION, "git_rebase_options");
638638

639639
if (!onto)
640640
onto = upstream;
@@ -1058,6 +1058,8 @@ int git_rebase_finish(
10581058

10591059
assert(rebase);
10601060

1061+
GITERR_CHECK_VERSION(given_opts, GIT_REBASE_OPTIONS_VERSION, "git_rebase_options");
1062+
10611063
if ((error = rebase_normalize_opts(rebase->repo, &opts, given_opts)) < 0)
10621064
goto done;
10631065

0 commit comments

Comments
 (0)