Skip to content

Conversation

kevinburke
Copy link
Contributor

Previously if you tried to read a HostName in a config file that
looked like this:

Host github
    HostName github.com        # This is the host for code review

DefaultUserSettings.Get("HostName") would return "github.com ",
which I think is unintuitive and unexpected.

This behavior is fixed in v1.2 which would return "github.com" in the
above example.

Previously if you tried to read a HostName in a config file that
looked like this:

```
Host github
    HostName github.com        # This is the host for code review
```

DefaultUserSettings.Get("HostName") would return "github.com        ",
which I think is unintuitive and unexpected.

This behavior is fixed in v1.2 which would return "github.com" in the
above example.
@Gusted
Copy link
Contributor

Gusted commented Mar 31, 2022

Hmm would be nice if go-git/go-git#507 was merged soon(so we can update go-git as a whole and don't update indirect dependencies ourselves). But seems to be rather non-breaking change, approving.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 31, 2022
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 31, 2022
@kevinburke
Copy link
Contributor Author

Yeah, I'm submitting to most of the dependencies because I don't know if/when go-git will get updated.

@Gusted
Copy link
Contributor

Gusted commented Mar 31, 2022

Their last update was nine updates ago and last activity was over a month so 🤷🏽.

@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (main@420851c). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main   #19286   +/-   ##
=======================================
  Coverage        ?   47.41%           
=======================================
  Files           ?      939           
  Lines           ?   131127           
  Branches        ?        0           
=======================================
  Hits            ?    62178           
  Misses          ?    61471           
  Partials        ?     7478           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 420851c...e1a7c00. Read the comment docs.

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 31, 2022
@6543 6543 added this to the 1.17.0 milestone Mar 31, 2022
@6543 6543 merged commit 242d710 into go-gitea:main Mar 31, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request Apr 1, 2022
* giteaoffical/main:
  Fix broken of team create (go-gitea#19288)
  Remove `git.Command.Run` and `git.Command.RunInDir*` (go-gitea#19280)
  Performance improvement for add team user when org has more than 1000 repositories (go-gitea#19227)
  [skip ci] Updated translations via Crowdin
  Update JS dependencies (go-gitea#19281)
  Fix container download counter (go-gitea#19287)
  go.mod: update kevinburke/ssh_config to v1.2.0 (go-gitea#19286)
  Fix global packages enabled avaiable (go-gitea#19276)
  Add Goroutine stack inspector to admin/monitor (go-gitea#19207)
  Move checks for pulls before merge into own function (go-gitea#19271)
  Restore user autoregistration with email addresses (go-gitea#19261)
  Improve sync performance for pull-mirrors (go-gitea#19125)
  Refactor `git.Command.Run*`, introduce `RunWithContextString` and `RunWithContextBytes` (go-gitea#19266)
  Move reaction to models/issues/ (go-gitea#19264)
@go-gitea go-gitea locked and limited conversation to collaborators Apr 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants