Commit 5b7e7131 by Eric Huss

Fix error return for invalid extensions.

parent 9deadaee
...@@ -860,7 +860,7 @@ int git_repository_open_ext( ...@@ -860,7 +860,7 @@ int git_repository_open_ext(
if (config && (error = check_repositoryformatversion(&version, config)) < 0) if (config && (error = check_repositoryformatversion(&version, config)) < 0)
goto cleanup; goto cleanup;
if ((error = check_extensions(config, version) < 0)) if ((error = check_extensions(config, version)) < 0)
goto cleanup; goto cleanup;
if ((flags & GIT_REPOSITORY_OPEN_BARE) != 0) if ((flags & GIT_REPOSITORY_OPEN_BARE) != 0)
...@@ -1613,7 +1613,7 @@ static int repo_init_config( ...@@ -1613,7 +1613,7 @@ static int repo_init_config(
if (is_reinit && (error = check_repositoryformatversion(&version, config)) < 0) if (is_reinit && (error = check_repositoryformatversion(&version, config)) < 0)
goto cleanup; goto cleanup;
if ((error = check_extensions(config, version) < 0)) if ((error = check_extensions(config, version)) < 0)
goto cleanup; goto cleanup;
#define SET_REPO_CONFIG(TYPE, NAME, VAL) do { \ #define SET_REPO_CONFIG(TYPE, NAME, VAL) do { \
......
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