From: Jan Kiszka <
jan.k...@siemens.com>
By design, we are dropping the locks while forcing a repo update. This
was triggering the infamous warning which should rather be avoided.
Fixes: 397b10d5fab5 ("repos: Warn about repos with branches but without commit or lock file")
Signed-off-by: Jan Kiszka <
jan.k...@siemens.com>
---
kas/config.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kas/config.py b/kas/config.py
index 1267094..4afdbbc 100644
--- a/kas/config.py
+++ b/kas/config.py
@@ -54,6 +54,8 @@ class Config:
for configfile in filename.split(':')]
update = ctx.args.update if hasattr(ctx.args, 'update') else False
+ if update:
+ ctx.unpinned_repo_warnings = False
self.handler = IncludeHandler(self.filenames, not update)
self.repo_dict = {}
--
2.47.3