mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
Fix typos
This commit is contained in:
parent
3c90e71300
commit
217064ca61
|
|
@ -156,7 +156,7 @@ func TestCommandGet(t *testing.T) {
|
|||
},
|
||||
},
|
||||
{
|
||||
name: "dot slach ./",
|
||||
name: "dot slash ./",
|
||||
scenario: func(t *testing.T, tmpRoot string, cloneArgs *_cloneArgs, updateArgs *_updateArgs) {
|
||||
localDir := filepath.Join(tmpRoot, "github.com", "motemen")
|
||||
os.MkdirAll(localDir, 0755)
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ func (g *getter) get(argURL string) error {
|
|||
if g.ssh {
|
||||
// Assume Git repository if `-p` is given.
|
||||
if u, err = convertGitURLHTTPToSSH(u); err != nil {
|
||||
return xerrors.Errorf("Could not convet URL %q: %w", u, err)
|
||||
return xerrors.Errorf("Could not convert URL %q: %w", u, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ func detectGoImport(u *url.URL) (string, *url.URL, error) {
|
|||
return detectVCSAndRepoURL(resp.Body)
|
||||
}
|
||||
|
||||
// find meta tag like following from thml
|
||||
// find meta tag like following from html
|
||||
// <meta name="go-import" content="gopkg.in/yaml.v2 git https://gopkg.in/yaml.v2">
|
||||
// ref. https://golang.org/cmd/go/#hdr-Remote_import_paths
|
||||
func detectVCSAndRepoURL(r io.Reader) (string, *url.URL, error) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue