diff options
Diffstat (limited to 'shared.c')
| -rw-r--r-- | shared.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -160,7 +160,7 @@ static struct refinfo *cgit_mk_refinfo(const char *refname, const struct object_ | |||
| 160 | 160 | ||
| 161 | ref = xmalloc(sizeof (struct refinfo)); | 161 | ref = xmalloc(sizeof (struct refinfo)); | 
| 162 | ref->refname = xstrdup(refname); | 162 | ref->refname = xstrdup(refname); | 
| 163 | ref->object = parse_object(oid->hash); | 163 | ref->object = parse_object(oid); | 
| 164 | switch (ref->object->type) { | 164 | switch (ref->object->type) { | 
| 165 | case OBJ_TAG: | 165 | case OBJ_TAG: | 
| 166 | ref->tag = cgit_parse_tag((struct tag *)ref->object); | 166 | ref->tag = cgit_parse_tag((struct tag *)ref->object); | 
| @@ -360,9 +360,9 @@ void cgit_diff_tree(const struct object_id *old_oid, | |||
| 360 | diff_setup_done(&opt); | 360 | diff_setup_done(&opt); | 
| 361 | 361 | ||
| 362 | if (old_oid && !is_null_oid(old_oid)) | 362 | if (old_oid && !is_null_oid(old_oid)) | 
| 363 | diff_tree_sha1(old_oid->hash, new_oid->hash, "", &opt); | 363 | diff_tree_oid(old_oid, new_oid, "", &opt); | 
| 364 | else | 364 | else | 
| 365 | diff_root_tree_sha1(new_oid->hash, "", &opt); | 365 | diff_root_tree_oid(new_oid, "", &opt); | 
| 366 | diffcore_std(&opt); | 366 | diffcore_std(&opt); | 
| 367 | diff_flush(&opt); | 367 | diff_flush(&opt); | 
| 368 | 368 | ||
