Merge branch 'snapshot-fixes'

这个提交包含在:
Lars Hjemli
2009-01-11 12:22:46 +01:00
当前提交 aa60ae12cb
共有 2 个文件被更改,包括 15 次插入13 次删除

查看文件

@ -175,10 +175,12 @@ void cgit_print_snapshot(const char *head, const char *hex,
if (!hex && dwim) {
hex = get_ref_from_filename(ctx.repo->url, filename, f);
if (hex != NULL) {
prefix = xstrdup(filename);
prefix[strlen(filename) - strlen(f->suffix)] = '\0';
if (hex == NULL) {
html_status(404, "Not found", 0);
return;
}
prefix = xstrdup(filename);
prefix[strlen(filename) - strlen(f->suffix)] = '\0';
}
if (!hex)