summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layman/dbtools/gitoliteparser.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/layman/dbtools/gitoliteparser.py b/layman/dbtools/gitoliteparser.py
index 1a66e86..141088a 100644
--- a/layman/dbtools/gitoliteparser.py
+++ b/layman/dbtools/gitoliteparser.py
@@ -56,11 +56,7 @@ class RepoDatabase:
m = matcher.search(line)
if m:
if matcher is _repo_line:
- self._add(repo, terms_status, is_overlay, dont_add_reason)
repo = m.group(1)
- terms_status = None
- is_overlay = None
- dont_add_reason = None
elif matcher is _terms_status_line:
terms_status = m.group(1)
@@ -74,6 +70,11 @@ class RepoDatabase:
desc_desc = m.group(3)
desc_map[desc_repo] = (desc_contact, desc_desc)
+ self._add(repo, terms_status, is_overlay, dont_add_reason)
+ terms_status = None
+ is_overlay = None
+ dont_add_reason = None
+
elif matcher is _dont_add_line:
dont_add_reason = m.group(1)