From fc08c2fe42b963481607f421d0ec76ec9823eec7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 29 Jul 2019 20:58:58 +0100 Subject: Periodically check for a new root tree --- src/dir.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/dir.cpp') diff --git a/src/dir.cpp b/src/dir.cpp index 012baa5..f59dd92 100644 --- a/src/dir.cpp +++ b/src/dir.cpp @@ -14,6 +14,7 @@ GitFS::Directory::Directory(Repo * const r, const std::string & p) : GitFS::Git::TreePtr GitFS::Directory::getSubtree() const { + repo->update(); if (!git_oid_equal(&subTreeCacheRootId, git_tree_id(repo->tree.get()))) { if (path == "/") { subTreeCache = repo->tree; -- cgit v1.2.3