mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-06 05:49:12 +02:00
* fix(daemon): add safe.directory=* to gitEnv to fix CI dubious ownership errors TestRegisterTaskReposAllowsProjectOnlyURL and TestRegisterTaskReposSurvivesWorkspaceRefresh fail on GitHub Actions CI because git clone --bare from local temp directories triggers git's safe.directory ownership check when the runner UID differs from the directory owner. Set safe.directory=* via GIT_CONFIG env vars in gitEnv() so all daemon git subprocesses trust any directory. The daemon manages its own bare caches and worktrees, so the ownership check provides no security value. Co-authored-by: multica-agent <github@multica.ai> * fix(daemon): preserve existing GIT_CONFIG_* entries in gitEnv Instead of resetting GIT_CONFIG_COUNT to 1, read the existing count from the environment and append safe.directory at the next available index. This preserves any env-scoped git config (auth, URL rewrites, extra headers) injected into the daemon process. Adds TestGitEnvPreservesExistingConfig to verify the append behavior. Co-authored-by: multica-agent <github@multica.ai> --------- Co-authored-by: multica-agent <github@multica.ai>