match-trees.c: remove the_repo from shift_tree*()
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
0dd1f0c3a6
commit
90d3405196
@ -153,9 +153,9 @@ static struct tree *shift_tree_object(struct repository *repo,
|
||||
struct object_id shifted;
|
||||
|
||||
if (!*subtree_shift) {
|
||||
shift_tree(&one->object.oid, &two->object.oid, &shifted, 0);
|
||||
shift_tree(repo, &one->object.oid, &two->object.oid, &shifted, 0);
|
||||
} else {
|
||||
shift_tree_by(&one->object.oid, &two->object.oid, &shifted,
|
||||
shift_tree_by(repo, &one->object.oid, &two->object.oid, &shifted,
|
||||
subtree_shift);
|
||||
}
|
||||
if (oideq(&two->object.oid, &shifted))
|
||||
|
||||
Reference in New Issue
Block a user