Skip to content

Commit f45c49b

Browse files
authored
fix(cli): wrong variable to store --no-proxy value (#21226)
Signed-off-by: Nathanael Liechti <[email protected]>
1 parent bb70a1f commit f45c49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/util/repo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func AddRepoFlags(command *cobra.Command, opts *RepoOptions) {
4545
command.Flags().StringVar(&opts.GithubAppPrivateKeyPath, "github-app-private-key-path", "", "private key of the GitHub Application")
4646
command.Flags().StringVar(&opts.GitHubAppEnterpriseBaseURL, "github-app-enterprise-base-url", "", "base url to use when using GitHub Enterprise (e.g. https://ghe.example.com/api/v3")
4747
command.Flags().StringVar(&opts.Proxy, "proxy", "", "use proxy to access repository")
48-
command.Flags().StringVar(&opts.Proxy, "no-proxy", "", "don't access these targets via proxy")
48+
command.Flags().StringVar(&opts.NoProxy, "no-proxy", "", "don't access these targets via proxy")
4949
command.Flags().StringVar(&opts.GCPServiceAccountKeyPath, "gcp-service-account-key-path", "", "service account key for the Google Cloud Platform")
5050
command.Flags().BoolVar(&opts.ForceHttpBasicAuth, "force-http-basic-auth", false, "whether to force use of basic auth when connecting repository via HTTP")
5151
}

0 commit comments

Comments
 (0)