Commit fea15f7c by Carlos Martín Nieto

Merge pull request #2736 from ethomson/describe_errorcode

describe: check error codes
parents 53e48b37 32e2b758
...@@ -682,9 +682,9 @@ int git_describe_commit( ...@@ -682,9 +682,9 @@ int git_describe_commit(
if ((error = git_object_peel((git_object **)(&commit), committish, GIT_OBJ_COMMIT)) < 0) if ((error = git_object_peel((git_object **)(&commit), committish, GIT_OBJ_COMMIT)) < 0)
goto cleanup; goto cleanup;
if (git_reference_foreach_name( if ((error = git_reference_foreach_name(
git_object_owner(committish), git_object_owner(committish),
get_name, &data) < 0) get_name, &data)) < 0)
goto cleanup; goto cleanup;
if (git_oidmap_size(data.names) == 0) { if (git_oidmap_size(data.names) == 0) {
......
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