From 66c5e8e3e80061993642c974909e3563006aaa0a Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 14 Oct 2022 12:06:21 -0400 Subject: Added in tag support. --- lpm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lpm.c') diff --git a/lpm.c b/lpm.c index 944a98a..c8584a5 100644 --- a/lpm.c +++ b/lpm.c @@ -287,9 +287,7 @@ static git_repository* luaL_checkgitrepo(lua_State* L, int index) { static git_commit* git_retrieve_commit(git_repository* repository, const char* commit_name) { git_oid commit_id; git_commit* commit; - if (git_get_id(&commit_id, repository, commit_name)) - return NULL; - if (git_commit_lookup(&commit, repository, &commit_id)) + if (git_get_id(&commit_id, repository, commit_name) || git_commit_lookup(&commit, repository, &commit_id)) return NULL; return commit; } -- cgit v1.2.3