summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-07-11 18:43:42 +0300
committerLars Wirzenius <liw@liw.fi>2015-07-11 18:43:42 +0300
commitd8f8704d0e2fbf59d03946e8eb5a00e522941059 (patch)
treec9f397e724e7339decbc4ed1961267dfce793676
parent2f57b649a21c9725e9bc61c9fbef6b90e902e3c9 (diff)
downloadobnam-d8f8704d0e2fbf59d03946e8eb5a00e522941059.tar.gz
Always add . to a directory
-rw-r--r--obnamlib/fmt_ga/tree.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/tree.py b/obnamlib/fmt_ga/tree.py
index cd8dba9f..701842ca 100644
--- a/obnamlib/fmt_ga/tree.py
+++ b/obnamlib/fmt_ga/tree.py
@@ -93,6 +93,7 @@ class GATree(object):
parent_obj.as_dict())
else:
parent_obj = obnamlib.GADirectory()
+ parent_obj.add_file('.')
parent_obj.add_subdir(basename, None)
self.set_directory(parent_path, parent_obj)