mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-11 02:10:03 +00:00
Merge pull request #2736 from ethomson/describe_errorcode
describe: check error codes
This commit is contained in:
commit
fea15f7c74
@ -682,9 +682,9 @@ int git_describe_commit(
|
||||
if ((error = git_object_peel((git_object **)(&commit), committish, GIT_OBJ_COMMIT)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (git_reference_foreach_name(
|
||||
if ((error = git_reference_foreach_name(
|
||||
git_object_owner(committish),
|
||||
get_name, &data) < 0)
|
||||
get_name, &data)) < 0)
|
||||
goto cleanup;
|
||||
|
||||
if (git_oidmap_size(data.names) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user