diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-29 20:58:58 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-07-29 20:58:58 +0100 |
commit | fc08c2fe42b963481607f421d0ec76ec9823eec7 (patch) | |
tree | 1dd59ffdd46523438a9af4727f5830411731b0b7 /src/dir.cpp | |
parent | Fix constness of repo pointers (diff) | |
download | netfs-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.cpp | 1 |
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; |