diff --git a/src/libfetchers/git-utils.cc b/src/libfetchers/git-utils.cc index 8fcfc4b0d..5486ab778 100644 --- a/src/libfetchers/git-utils.cc +++ b/src/libfetchers/git-utils.cc @@ -590,7 +590,7 @@ struct GitInputAccessor : InputAccessor i = lookupCache.emplace(path, std::move(entry)).first; } - return &*i->second; + return i->second.get(); } git_tree_entry * need(const CanonPath & path)