summaryrefslogtreecommitdiffstats
path: root/layman/overlays/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'layman/overlays/git.py')
-rw-r--r--layman/overlays/git.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/layman/overlays/git.py b/layman/overlays/git.py
index 3cdc21e..308c81f 100644
--- a/layman/overlays/git.py
+++ b/layman/overlays/git.py
@@ -68,7 +68,10 @@ class GitOverlay(OverlaySource):
args.append(fix_git_source(self.src))
args.append(target)
return self.postsync(
- self.run_command(self.command(), args, cmd=self.type),
+ # adding cwd=base due to a new git bug in selinux due to
+ # not having user_home_dir_t and portage_fetch_t permissions
+ # but changing dir works around it.
+ self.run_command(self.command(), args, cmd=self.type, cwd=base),
cwd=target)
def sync(self, base):