forked from forgejo/forgejo
Update src-d/go-git to v4.13.0 (#7688)
* update gopkg.in/src-d/go-git.v4 v4.13.0 * mod tidy * vendor
This commit is contained in:
parent
bb875e98a1
commit
a9b4c8171f
131 changed files with 3148 additions and 406 deletions
8
vendor/github.com/kevinburke/ssh_config/parser.go
generated
vendored
8
vendor/github.com/kevinburke/ssh_config/parser.go
generated
vendored
|
@ -149,7 +149,7 @@ func (p *sshParser) parseKV() sshParserStateFn {
|
|||
Value: val.val,
|
||||
Comment: comment,
|
||||
hasEquals: hasEquals,
|
||||
leadingSpace: uint16(key.Position.Col) - 1,
|
||||
leadingSpace: key.Position.Col - 1,
|
||||
position: key.Position,
|
||||
}
|
||||
lastHost.Nodes = append(lastHost.Nodes, kv)
|
||||
|
@ -169,6 +169,12 @@ func (p *sshParser) parseComment() sshParserStateFn {
|
|||
}
|
||||
|
||||
func parseSSH(flow chan token, system bool, depth uint8) *Config {
|
||||
// Ensure we consume tokens to completion even if parser exits early
|
||||
defer func() {
|
||||
for range flow {
|
||||
}
|
||||
}()
|
||||
|
||||
result := newConfig()
|
||||
result.position = Position{1, 1}
|
||||
parser := &sshParser{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue