summaryrefslogtreecommitdiff
path: root/tests-clar/reset/reset_helpers.c
blob: 17edca4e9cdbff188306010e05da13cd1950dfae (plain)
1
2
3
4
5
6
7
8
9
10
#include "clar_libgit2.h"
#include "reset_helpers.h"

void retrieve_target_from_oid(git_object **object_out, git_repository *repo, const char *sha)
{
	git_oid oid;

	cl_git_pass(git_oid_fromstr(&oid, sha));
	cl_git_pass(git_object_lookup(object_out, repo, &oid, GIT_OBJ_ANY));
}