X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fetch.c;h=8e29d313f817981a29ebb65f2f579c9f1bd8e9b6;hb=23fcdc79713c47a6a0d50762b9311c9933a60d3f;hp=663b4b2f42744a2d12ba1d8661b8b0d3645ef82b;hpb=fa2376f3c89ae59f33e50e0e5769dec2652e9568;p=git.git diff --git a/fetch.c b/fetch.c index 663b4b2f4..8e29d313f 100644 --- a/fetch.c +++ b/fetch.c @@ -1,6 +1,5 @@ -#include "fetch.h" - #include "cache.h" +#include "fetch.h" #include "commit.h" #include "tree.h" #include "tree-walk.h" @@ -43,8 +42,7 @@ static int process_tree(struct tree *tree) if (parse_tree(tree)) return -1; - desc.buf = tree->buffer; - desc.size = tree->size; + init_tree_desc(&desc, tree->buffer, tree->size); while (tree_entry(&desc, &entry)) { struct object *obj = NULL;