diff options
author | 2024-05-05 16:24:52 -0400 | |
---|---|---|
committer | 2024-05-12 17:20:02 +0100 | |
commit | 95b4337d376a146db8fda7717393366175cbd285 (patch) | |
tree | 701506c332d04ec9f1747593101ef1718ff8830c /lib | |
parent | actions: handle pkgmoves for autoconf, automake, libtool (diff) | |
download | portage-95b4337d376a146db8fda7717393366175cbd285.tar.gz portage-95b4337d376a146db8fda7717393366175cbd285.tar.bz2 portage-95b4337d376a146db8fda7717393366175cbd285.zip |
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@yahoo.ca>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portage/sync/modules/git/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/portage/sync/modules/git/git.py b/lib/portage/sync/modules/git/git.py index 8fdbf97de..a2830280f 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 = ( |