X Tutup
Skip to content

Commit c87deab

Browse files
authored
Merge pull request cli#2397 from ganboonhong/fix-typos
Fix typos
2 parents 6e1e62f + 57ec879 commit c87deab

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/cmd/repo/clone/clone.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewCmdClone(f *cmdutil.Factory, runF func(*CloneOptions) error) *cobra.Comm
4444
4545
If the "OWNER/" portion of the "OWNER/REPO" repository argument is omitted, it
4646
defaults to the name of the authenticating user.
47-
47+
4848
Pass additional 'git clone' flags by listing them after '--'.
4949
`),
5050
RunE: func(cmd *cobra.Command, args []string) error {
@@ -82,12 +82,12 @@ func cloneRun(opts *CloneOptions) error {
8282

8383
apiClient := api.NewClientFromHTTP(httpClient)
8484

85-
respositoryIsURL := strings.Contains(opts.Repository, ":")
86-
repositoryIsFullName := !respositoryIsURL && strings.Contains(opts.Repository, "/")
85+
repositoryIsURL := strings.Contains(opts.Repository, ":")
86+
repositoryIsFullName := !repositoryIsURL && strings.Contains(opts.Repository, "/")
8787

8888
var repo ghrepo.Interface
8989
var protocol string
90-
if respositoryIsURL {
90+
if repositoryIsURL {
9191
repoURL, err := git.ParseURL(opts.Repository)
9292
if err != nil {
9393
return err

0 commit comments

Comments
 (0)
X Tutup