1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Fix create secret for Git over HTTP/S

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2020-12-09 17:39:04 +02:00
parent c73541f81f
commit cd87fbba0d

View File

@@ -142,7 +142,7 @@ func createSecretGitCmdRun(cmd *cobra.Command, args []string) error {
logger.Generatef("deploy key: %s", string(pair.PublicKey))
}
case "http", "https":
if sourceGitUsername == "" || sourceGitPassword == "" {
if secretGitUsername == "" || secretGitPassword == "" {
return fmt.Errorf("for Git over HTTP/S the username and password are required")
}