V3: prevent git's 'dubious ownership' error
This commit is contained in:
parent
d457decbdd
commit
c1564ce083
|
|
@ -1285,6 +1285,10 @@ func setupDefaultGitConfigs(ctx context.Context) error {
|
||||||
// How to manage credentials (for those modes that need it).
|
// How to manage credentials (for those modes that need it).
|
||||||
key: "credential.helper",
|
key: "credential.helper",
|
||||||
val: "cache --timeout 3600",
|
val: "cache --timeout 3600",
|
||||||
|
}, {
|
||||||
|
// Our working root is safe (avoid a "dubious ownership" error).
|
||||||
|
key: "safe.directory",
|
||||||
|
val: "*",
|
||||||
}}
|
}}
|
||||||
for _, kv := range configs {
|
for _, kv := range configs {
|
||||||
if _, err := cmdRunner.Run(ctx, "", nil, *flGitCmd, "config", "--global", kv.key, kv.val); err != nil {
|
if _, err := cmdRunner.Run(ctx, "", nil, *flGitCmd, "config", "--global", kv.key, kv.val); err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue