mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
Remove log and fix typo
This commit is contained in:
parent
738d2a1107
commit
6f4c4a37dc
1 changed files with 1 additions and 3 deletions
|
@ -177,7 +177,7 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) {
|
|||
for _, item := range bsRepo.Links.Clone {
|
||||
if item.Name == "http" {
|
||||
//TODO sdhould find a clean way to do this
|
||||
//We are removing the username out fo the link to allow for Netrc to work
|
||||
//We are removing the username out of the link to allow for Netrc to work
|
||||
splitUrl := strings.SplitAfterN(item.Href,"@",2)
|
||||
splitProtocal := strings.SplitAfterN(splitUrl[0],"//",2)
|
||||
cleanUrl := fmt.Sprintf("%s%s",splitProtocal[0], splitUrl[1])
|
||||
|
@ -271,8 +271,6 @@ func (c *client) Netrc(user *model.User, r *model.Repo) (*model.Netrc, error) {
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
log.Info(fmt.Sprintf("machine % login %s password %s", host, c.GitUserName, c.GitPassword))
|
||||
|
||||
return &model.Netrc{
|
||||
Machine: host,
|
||||
Login: c.GitUserName,
|
||||
|
|
Loading…
Reference in a new issue