diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-11 16:45:55 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-11 16:45:55 +0300 |
commit | a48a31cc307082add1de2b80c7d8fb459d6a03bf (patch) | |
tree | 2104804c57bda34e9bcd4f745fdc26356c18b569 /obnamlib/fmt_ga/tree.py | |
parent | 5c530a5ae8d9a3d2f2e9fb96f7152c32673b74b0 (diff) | |
download | obnam-a48a31cc307082add1de2b80c7d8fb459d6a03bf.tar.gz |
Do not require / is in cache when flushing GATree
Diffstat (limited to 'obnamlib/fmt_ga/tree.py')
-rw-r--r-- | obnamlib/fmt_ga/tree.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/obnamlib/fmt_ga/tree.py b/obnamlib/fmt_ga/tree.py index 8e5e01f2..cd8dba9f 100644 --- a/obnamlib/fmt_ga/tree.py +++ b/obnamlib/fmt_ga/tree.py @@ -121,7 +121,8 @@ class GATree(object): self.set_directory(parent_path, parent_obj) def flush(self): - self._root_dir_id = self._fixup_subdir_refs('/') + if '/' in self._cache: + self._root_dir_id = self._fixup_subdir_refs('/') self._blob_store.flush() self._cache.clear() |