diff options
Diffstat (limited to 'ui-blob.c')
| -rw-r--r-- | ui-blob.c | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -94,12 +94,12 @@ void cgit_print_blob(const char *hex, char *path, const char *head) | |||
| 94 | 94 | ||
| 95 | if (hex) { | 95 | if (hex) { |
| 96 | if (get_sha1_hex(hex, sha1)) { | 96 | if (get_sha1_hex(hex, sha1)) { |
| 97 | cgit_print_error(fmt("Bad hex value: %s", hex)); | 97 | cgit_print_error("Bad hex value: %s", hex); |
| 98 | return; | 98 | return; |
| 99 | } | 99 | } |
| 100 | } else { | 100 | } else { |
| 101 | if (get_sha1(head, sha1)) { | 101 | if (get_sha1(head, sha1)) { |
| 102 | cgit_print_error(fmt("Bad ref: %s", head)); | 102 | cgit_print_error("Bad ref: %s", head); |
| 103 | return; | 103 | return; |
| 104 | } | 104 | } |
| 105 | } | 105 | } |
| @@ -113,13 +113,13 @@ void cgit_print_blob(const char *hex, char *path, const char *head) | |||
| 113 | } | 113 | } |
| 114 | 114 | ||
| 115 | if (type == OBJ_BAD) { | 115 | if (type == OBJ_BAD) { |
| 116 | cgit_print_error(fmt("Bad object name: %s", hex)); | 116 | cgit_print_error("Bad object name: %s", hex); |
| 117 | return; | 117 | return; |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | buf = read_sha1_file(sha1, &type, &size); | 120 | buf = read_sha1_file(sha1, &type, &size); |
| 121 | if (!buf) { | 121 | if (!buf) { |
| 122 | cgit_print_error(fmt("Error reading object %s", hex)); | 122 | cgit_print_error("Error reading object %s", hex); |
| 123 | return; | 123 | return; |
| 124 | } | 124 | } |
| 125 | 125 | ||
