Commit 56f8e06e4985f7b14c1bf7c526a5195ba24fd6ee

Jacques Germishuys 2014-04-08T15:46:45

Correct grouping of parentheses git_graph_descendant_of was returning the result of an assignment

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/graph.c b/src/graph.c
index 96fda7a..1c64411 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -180,7 +180,7 @@ int git_graph_descendant_of(git_repository *repo, const git_oid *commit, const g
 	if (git_oid_equal(commit, ancestor))
 		return 0;
 
-	if ((error = git_merge_base(&merge_base, repo, commit, ancestor) < 0))
+	if ((error = git_merge_base(&merge_base, repo, commit, ancestor)) < 0)
 		return error;
 
 	return git_oid_equal(&merge_base, ancestor);