diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2013-12-12 17:40:40 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2013-12-12 17:40:40 -0500 |
| commit | 86a05ef382438b22d2ffaaa1a77814781243bc80 (patch) | |
| tree | e8e75570944a76fc1d5fca907ccc924f8e7db0a3 /src/revert.c | |
| parent | 0eedacb06ae07fd0d784066ad41383276e05d92e (diff) | |
| download | libgit2-86a05ef382438b22d2ffaaa1a77814781243bc80.tar.gz | |
Validate struct versions in merge, revert
Diffstat (limited to 'src/revert.c')
| -rw-r--r-- | src/revert.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
