diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2017-05-01 16:17:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-01 16:17:48 +0100 |
commit | 13c1bf0718363960c1867f35c9ce3ebc7bf74729 (patch) | |
tree | f3d0aee020f8d45ce2a0c0d9e0bf03501b0a8822 /src/settings.c | |
parent | d87028438621240406b73ddff5a9e488734cbda7 (diff) | |
parent | e0973bc0fc2b04b6bb27e4ce4db2b37e9577a75d (diff) | |
download | libgit2-13c1bf0718363960c1867f35c9ce3ebc7bf74729.tar.gz |
Merge pull request #4197 from pks-t/pks/verify-object-hashes
Verify object hashes
Diffstat (limited to 'src/settings.c')
-rw-r--r-- | src/settings.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.c b/src/settings.c index 42f247aae..25c5aae6d 100644 --- a/src/settings.c +++ b/src/settings.c @@ -15,6 +15,7 @@ #include "cache.h" #include "global.h" #include "object.h" +#include "odb.h" #include "refs.h" #include "transports/smart.h" @@ -243,6 +244,10 @@ int git_libgit2_opts(int key, ...) #endif break; + case GIT_OPT_ENABLE_STRICT_HASH_VERIFICATION: + git_odb__strict_hash_verification = (va_arg(ap, int) != 0); + break; + default: giterr_set(GITERR_INVALID, "invalid option key"); error = -1; |