summaryrefslogtreecommitdiff
path: root/src/dir.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-07-29 20:58:58 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2019-07-29 20:58:58 +0100
commitfc08c2fe42b963481607f421d0ec76ec9823eec7 (patch)
tree1dd59ffdd46523438a9af4727f5830411731b0b7 /src/dir.cpp
parentFix constness of repo pointers (diff)
downloadnetfs-gitfs-fc08c2fe42b963481607f421d0ec76ec9823eec7.tar.bz2
netfs-gitfs-fc08c2fe42b963481607f421d0ec76ec9823eec7.tar.xz
netfs-gitfs-fc08c2fe42b963481607f421d0ec76ec9823eec7.zip
Periodically check for a new root tree
Diffstat (limited to 'src/dir.cpp')
-rw-r--r--src/dir.cpp1
1 files changed, 1 insertions, 0 deletions
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;