mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
Clean up minor details
This commit is contained in:
@@ -17,7 +17,7 @@ static int resolve_to_tree(
|
||||
int err = 0;
|
||||
git_object *obj = NULL;
|
||||
|
||||
if ((err =git_revparse(&obj, NULL, NULL, repo, identifier)) < 0)
|
||||
if ((err = git_revparse_single(&obj, repo, identifier)) < 0)
|
||||
return err;
|
||||
|
||||
switch (git_object_type(obj)) {
|
||||
|
||||
Reference in New Issue
Block a user