Reuse the repository directory by storing a state yaml

Not using the database for that so that removing the repository directory will
automatically recreate it
This commit is contained in:
Stephan Kulow
2022-11-01 09:03:03 +01:00
parent 2168c898a2
commit 9554fea7e1
3 changed files with 38 additions and 14 deletions

View File

@@ -181,6 +181,9 @@ class Git:
except:
return None
def branch_head(self, branch):
return self.repo.references["refs/heads/" + branch].target
def gc(self):
logging.info(f"Garbage recollec and repackage {self.path}")
subprocess.run(