Commit 6a8f3fa85044243d9103283a899bc8058b3149fe

Pierre-Olivier Latour 2015-06-23T20:59:03

Fixed invalid error handling in git_repository_open_ext()

1
2
3
4
5
6
7
8
9
10
11
12
13
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;
 	}