[trivial] typo 'isPriavte' should be 'isPrivate'.

This commit is contained in:
Lloyd Dewolf 2014-10-24 12:15:50 -07:00
Родитель e80acd844d
Коммит 0855c4f2e3
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -66,7 +66,7 @@ func transformRemoteArgs(args *Args) {
} }
words := args.Words() words := args.Words()
isPriavte := parseRemotePrivateFlag(args) isPrivate := parseRemotePrivateFlag(args)
if len(words) == 2 && words[1] == "origin" { if len(words) == 2 && words[1] == "origin" {
// Origin special case triggers default user/repo // Origin special case triggers default user/repo
host, err := github.CurrentConfig().DefaultHost() host, err := github.CurrentConfig().DefaultHost()
@ -87,8 +87,8 @@ func transformRemoteArgs(args *Args) {
project := github.NewProject(owner, name, host) project := github.NewProject(owner, name, host)
// for GitHub Enterprise // for GitHub Enterprise
isPriavte = isPriavte || project.Host != github.GitHubHost isPrivate = isPrivate || project.Host != github.GitHubHost
url := project.GitURL(name, owner, isPriavte) url := project.GitURL(name, owner, isPrivate)
args.AppendParams(url) args.AppendParams(url)
} }