diff options
author | Edward Thomson <ethomson@microsoft.com> | 2014-11-29 15:57:35 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2014-11-29 15:57:35 -0500 |
commit | 32e2b758cf20f1a1a608c0e52e300254fe9bdd28 (patch) | |
tree | ec306b7fee4e1b7a5b1f07536a52868827a63aa6 /src/describe.c | |
parent | 53e48b370c585d5552cea7538bb20db500a865d7 (diff) | |
download | libgit2-32e2b758cf20f1a1a608c0e52e300254fe9bdd28.tar.gz |
describe: check error codes
Diffstat (limited to 'src/describe.c')
-rw-r--r-- | src/describe.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/describe.c b/src/describe.c index a193fcbcb..57f715b5e 100644 --- a/src/describe.c +++ b/src/describe.c @@ -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) { |