Merge branch 'bc/tree-walk-oid'
The code to walk tree objects has been taught that we may be working with object names that are not computed with SHA-1. * bc/tree-walk-oid: cache: make oidcpy always copy GIT_MAX_RAWSZ bytes tree-walk: store object_id in a separate member match-trees: use hashcpy to splice trees match-trees: compute buffer offset correctly when splicing tree-walk: copy object ID before use
This commit is contained in:
@ -124,15 +124,15 @@ static void process_tree_contents(struct traversal_context *ctx,
|
||||
}
|
||||
|
||||
if (S_ISDIR(entry.mode)) {
|
||||
struct tree *t = lookup_tree(ctx->revs->repo, entry.oid);
|
||||
struct tree *t = lookup_tree(ctx->revs->repo, &entry.oid);
|
||||
t->object.flags |= NOT_USER_GIVEN;
|
||||
process_tree(ctx, t, base, entry.path);
|
||||
}
|
||||
else if (S_ISGITLINK(entry.mode))
|
||||
process_gitlink(ctx, entry.oid->hash,
|
||||
process_gitlink(ctx, entry.oid.hash,
|
||||
base, entry.path);
|
||||
else {
|
||||
struct blob *b = lookup_blob(ctx->revs->repo, entry.oid);
|
||||
struct blob *b = lookup_blob(ctx->revs->repo, &entry.oid);
|
||||
b->object.flags |= NOT_USER_GIVEN;
|
||||
process_blob(ctx, b, base, entry.path);
|
||||
}
|
||||
|
Reference in New Issue
Block a user