aboutsummaryrefslogtreecommitdiff
path: root/internal/service/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/git.go')
-rw-r--r--internal/service/git.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/service/git.go b/internal/service/git.go
index 830f602..cee8866 100644
--- a/internal/service/git.go
+++ b/internal/service/git.go
@@ -111,12 +111,12 @@ func MirrorGit(dst *internal.URL, src *internal.URL, description string) error {
}
// Git mirrors are not good places for mirrored assets.
- cmd = exec.Command("git", "config", "set", "cgit.snapshots", "none")
+ cmd = exec.Command("git", "config", "--file", "config", "--add", "cgit.snapshots", "none")
cmd.Dir = dst.Path
err = cmd.Run()
if err != nil {
err = mapExecError(err)
- return fmt.Errorf("disabling cgit snapshots: %s", err)
+ return fmt.Errorf("setting git configuration cgit.snapshot to 'none': %s", err)
}
}