src-d / go-git

Project has been moved to: https://github.com/go-git/go-git
https://github.com/go-git/go-git
Apache License 2.0
4.91k stars 542 forks source link

Allow providing custom http auth method #1196

Closed hypnoce closed 5 years ago

hypnoce commented 5 years ago

The setAuth method of the http.AuthMethod is private. https://github.com/src-d/go-git/blob/1edb992dbc419a0767b1cf3a524b0d35529799f5/plumbing/transport/http/common.go#L178 This prevents anyone to provide a custom auth method.

Making this method public will allow implementation of custom auth.