Skip to content

Commit

Permalink
feat(build): #944 git safe directory
Browse files Browse the repository at this point in the history
- After changing users, the git directory endup
  being owned by a different user

Signed-off-by: Kevin Amado <[email protected]>
  • Loading branch information
kamadorueda committed Oct 5, 2022
1 parent 2e3becc commit 92da770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions makes/container-image/main.nix
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,10 @@ inputs.nixpkgs.dockerTools.buildImage {
chmod u+w /home/makes /tmp
chown makes:makes /home/makes /tmp
git config --global --add safe.directory '*'
set +x
chown makes:makes --recursive "$PWD"
${inputs.nixpkgs.doas}/bin/doas -u makes ${outputs."/"}/bin/m "$@"
set +x
fi
'')
];
Expand Down

0 comments on commit 92da770

Please sign in to comment.