commit:     1c2e99fbf21675c8335ab8a3eee0ed58e89c4342
Author:     Zac Medico <zachary.medico <AT> sony <DOT> com>
AuthorDate: Tue Dec  3 23:14:54 2019 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Dec  3 23:18:02 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=1c2e99fb

repoman commit: ignore unadded hidden files except '.' itself

Fixes: a561ac910331 ("repoman commit: ignore unadded hidden files")
Bug: https://bugs.gentoo.org/541076
Copyright: Sony Interactive Entertainment Inc.
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 repoman/lib/repoman/actions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/repoman/lib/repoman/actions.py b/repoman/lib/repoman/actions.py
index 2817fa58a..387ba7800 100644
--- a/repoman/lib/repoman/actions.py
+++ b/repoman/lib/repoman/actions.py
@@ -334,7 +334,7 @@ the whole commit message to abort.
                if myunadded:
                        for x in range(len(myunadded) - 1, -1, -1):
                                xs = myunadded[x].split("/")
-                               if (any(token.startswith('.') for token in xs) 
or
+                               if (any(token.startswith('.') and token != '.' 
for token in xs) or
                                        
self.repo_settings.repo_config.find_invalid_path_char(myunadded[x]) != -1):
                                        # The Manifest excludes this file,
                                        # so it's safe to ignore.

Reply via email to