Fixed invalid error handling in git_repository_open_ext()
diff --git a/src/repository.c b/src/repository.c
index b7c99ea..de1c0dc 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -531,7 +531,7 @@ int git_repository_open_ext(
if (config &&
((error = load_config_data(repo, config)) < 0 ||
- (error = load_workdir(repo, config, &parent))) < 0)
+ (error = load_workdir(repo, config, &parent)) < 0))
goto cleanup;
}