зеркало из https://github.com/mislav/hub.git
[trivial] typo 'isPriavte' should be 'isPrivate'.
This commit is contained in:
Родитель
e80acd844d
Коммит
0855c4f2e3
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче