mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 14:25:15 +00:00
Add a wrapper for get_sha1 called cgit_get_sha1
This will later be changed to include namespace resolution, but the call sites are changed now to keep the changes small. Signed-off-by: Richard Maw <richard.maw@gmail.com>
This commit is contained in:
2
ui-tag.c
2
ui-tag.c
@@ -51,7 +51,7 @@ void cgit_print_tag(char *revname)
|
||||
revname = ctx.qry.head;
|
||||
|
||||
strbuf_addf(&fullref, "refs/tags/%s", revname);
|
||||
if (get_sha1(fullref.buf, sha1)) {
|
||||
if (cgit_get_sha1(fullref.buf, sha1)) {
|
||||
cgit_print_error_page(404, "Not found",
|
||||
"Bad tag reference: %s", revname);
|
||||
goto cleanup;
|
||||
|
Reference in New Issue
Block a user