Fix create source git auth for non-HTTPS repos

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/1222/head
Stefan Prodan 4 years ago
parent 466fdae70e
commit 8b5583930e
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

@ -240,6 +240,9 @@ func createSourceGitCmdRun(cmd *cobra.Command, args []string) error {
secretOpts.Username = sourceGitArgs.username secretOpts.Username = sourceGitArgs.username
secretOpts.Password = sourceGitArgs.password secretOpts.Password = sourceGitArgs.password
secretOpts.CAFilePath = sourceGitArgs.caFile secretOpts.CAFilePath = sourceGitArgs.caFile
case "http":
secretOpts.Username = sourceGitArgs.username
secretOpts.Password = sourceGitArgs.password
} }
secret, err := sourcesecret.Generate(secretOpts) secret, err := sourcesecret.Generate(secretOpts)
if err != nil { if err != nil {

Loading…
Cancel
Save