Skip to content

Commit

Permalink
Set $HOME to the user's home directory in sync scripts
Browse files Browse the repository at this point in the history
Makes sure git can find the user's git configuration.
  • Loading branch information
DaanDeMeyer committed Mar 20, 2024
1 parent 2b22dbd commit d756b51
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ def run_sync_scripts(context: Context) -> None:
MKOSI_UID=str(INVOKING_USER.uid),
MKOSI_GID=str(INVOKING_USER.gid),
MKOSI_CONFIG="/work/config.json",
HOME=INVOKING_USER.home(),
CACHED=one_zero(have_cache(context.config)),
)

Expand Down

0 comments on commit d756b51

Please sign in to comment.