commit: 95b4337d376a146db8fda7717393366175cbd285 Author: Alex Xu (Hello71) <alex_y_xu <AT> yahoo <DOT> ca> AuthorDate: Sun May 5 20:24:52 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sun May 12 16:20:02 2024 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=95b4337d
sync: git: add safe.directory for get head commit Closes: https://bugs.gentoo.org/930992 Fixes: 1339a02103 ("sync: git: include signing key and git revision in log output") Signed-off-by: Alex Xu (Hello71) <alex_y_xu <AT> yahoo.ca> Signed-off-by: Sam James <sam <AT> gentoo.org> lib/portage/sync/modules/git/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/portage/sync/modules/git/git.py b/lib/portage/sync/modules/git/git.py index 8fdbf97de0..a2830280fb 100644 --- a/lib/portage/sync/modules/git/git.py +++ b/lib/portage/sync/modules/git/git.py @@ -606,6 +606,7 @@ class GitSync(NewBase): if self.bin_command is None: # return quietly so that we don't pollute emerge --info output return (1, False) + self.add_safe_directory() rev_cmd = [self.bin_command, "rev-list", "--max-count=1", "HEAD"] try: ret = (
