diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-20 11:00:12 +0100 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2016-03-20 11:00:12 +0100 |
commit | 60a194aa86d54ffb55c1abff8d0ef05647f936e8 (patch) | |
tree | f8312c890d8a5862d1d3ee705fe97fc0778f1bb2 /src/submodule.c | |
parent | ec5a43b60ab0dfcb42db8101edfca34be3d62947 (diff) | |
download | libgit2-60a194aa86d54ffb55c1abff8d0ef05647f936e8.tar.gz |
tree: re-use the id and filename in the odb object
Instead of copying over the data into the individual entries, point to
the originals, which are already in a format we can use.
Diffstat (limited to 'src/submodule.c')
-rw-r--r-- | src/submodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/submodule.c b/src/submodule.c index 3f39b9ef0..c903cf939 100644 --- a/src/submodule.c +++ b/src/submodule.c @@ -1417,7 +1417,7 @@ static int submodule_update_head(git_submodule *submodule) git_tree_entry_bypath(&te, head, submodule->path) < 0) giterr_clear(); else - submodule_update_from_head_data(submodule, te->attr, &te->oid); + submodule_update_from_head_data(submodule, te->attr, git_tree_entry_id(te)); git_tree_entry_free(te); git_tree_free(head); |