Skip to content

Commit 5b7e713

Browse files
committed
Fix error return for invalid extensions.
1 parent 9deadae commit 5b7e713

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/repository.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ int git_repository_open_ext(
860860
if (config && (error = check_repositoryformatversion(&version, config)) < 0)
861861
goto cleanup;
862862

863-
if ((error = check_extensions(config, version) < 0))
863+
if ((error = check_extensions(config, version)) < 0)
864864
goto cleanup;
865865

866866
if ((flags & GIT_REPOSITORY_OPEN_BARE) != 0)
@@ -1613,7 +1613,7 @@ static int repo_init_config(
16131613
if (is_reinit && (error = check_repositoryformatversion(&version, config)) < 0)
16141614
goto cleanup;
16151615

1616-
if ((error = check_extensions(config, version) < 0))
1616+
if ((error = check_extensions(config, version)) < 0)
16171617
goto cleanup;
16181618

16191619
#define SET_REPO_CONFIG(TYPE, NAME, VAL) do { \

0 commit comments

Comments
 (0)