update_manager: only perform rsync backups on clean repos
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
f0a6620267
commit
b1f8eaae51
|
@ -807,6 +807,9 @@ class GitRepo:
|
||||||
if owner_match is not None:
|
if owner_match is not None:
|
||||||
self.git_owner = owner_match.group(1)
|
self.git_owner = owner_match.group(1)
|
||||||
self.dirty = current_version.endswith("dirty")
|
self.dirty = current_version.endswith("dirty")
|
||||||
|
if not self.dirty:
|
||||||
|
# backup the current repo if it is clean
|
||||||
|
await self._backup_repo()
|
||||||
|
|
||||||
# Parse Version Info
|
# Parse Version Info
|
||||||
versions = []
|
versions = []
|
||||||
|
@ -910,7 +913,6 @@ class GitRepo:
|
||||||
else:
|
else:
|
||||||
self.git_branch = branch_info
|
self.git_branch = branch_info
|
||||||
self.valid_git_repo = True
|
self.valid_git_repo = True
|
||||||
await self._backup_repo()
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def log_repo_info(self):
|
def log_repo_info(self):
|
||||||
|
|
Loading…
Reference in New Issue