diff --git a/modules/context/context.go b/modules/context/context.go index 393b10f..b145037 100644 --- a/modules/context/context.go +++ b/modules/context/context.go @@ -222,7 +222,7 @@ func contextFromLocalRepo(repoPath, remoteValue string) (*git.TeaRepo, *config.L return repo, &l, strings.TrimSuffix(path, ".git"), nil } } else if strings.EqualFold(p.Scheme, "ssh") { - if sshHost == p.Host { + if sshHost == p.Host || sshHost == p.Hostname() { return repo, &l, strings.TrimLeft(p.Path, "/"), nil } }