Commit dc03e3d
fix: set git safe.directory at system level for non-root container users (#1262)
Switches the safe.directory "*" config from --global (only written to
/root/.gitconfig) to --system (/etc/gitconfig) so it applies regardless
of which user runs git. The image intentionally sets no USER directive
and can be run as an arbitrary --user, where the global config was never
read, leaving the "dubious ownership" error unfixed.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent aaa8cfe commit dc03e3d
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| |||
0 commit comments