Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions internal/gitcache/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ var gitConfig = [][2]string{
// git would follow a redirect from the relay straight to the network.
{"http.followRedirects", "false"},
{"protocol.version", "2"},
// The reftable storage of Git 2.56 records the writer's identity
// with every ref write, and Git takes the email of an unconfigured
// one from the machine hostname, a lookup that stalls every fetch
// whenever the resolver is slow.
{"user.name", "git-pkgs proxy"},
{"user.email", "git-pkgs-proxy@localhost"},
// Auto gc stays on, as on any Git server, but runs inside the fetch
// rather than detaching, so no git process outlives the fetch that
// started it, and sizes are measured after it.
Expand Down
Loading