Commit 1d37da33 by Carlos Martín Nieto

merge: any non-zero return from the user is an error

This fixes #1703.
parent 97d32abb
...@@ -285,7 +285,7 @@ int git_repository_mergehead_foreach(git_repository *repo, ...@@ -285,7 +285,7 @@ int git_repository_mergehead_foreach(git_repository *repo,
if ((error = git_oid_fromstr(&oid, line)) < 0) if ((error = git_oid_fromstr(&oid, line)) < 0)
goto cleanup; goto cleanup;
if (cb(&oid, payload) < 0) { if (cb(&oid, payload) != 0) {
error = GIT_EUSER; error = GIT_EUSER;
goto cleanup; goto cleanup;
} }
......
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