Commit Diff


commit - 8cb8da5b6d133f8130a9e4e828ca00ff0bb482ca
commit + 237cfda12ceeaf6741ae34b166118631ffd35a80
blob - aefced9489544735f291e942d94b7c3fb6fc5395
blob + b06c9dd2e1937dcf6624689b565d28b3a51d1c4a
--- lib/repository.c
+++ lib/repository.c
@@ -1505,7 +1505,7 @@ got_repo_match_object_id(struct got_object_id **id, ch
 		*label = NULL;
 
 	if (refs) {
-		err = got_repo_object_match_tag(&tag, id_str, GOT_OBJ_TYPE_ANY,
+		err = got_repo_object_match_tag(&tag, id_str, obj_type,
 		    refs, repo);
 		if (err == NULL) {
 			*id = got_object_id_dup(