@@ -20,6 +20,7 @@ import (
20
20
"fmt"
21
21
"io"
22
22
"net/http"
23
+ "net/url"
23
24
"os"
24
25
"sort"
25
26
"strings"
@@ -93,7 +94,6 @@ var storesTypeCreateCmd = &cobra.Command{
93
94
gitRef , _ := cmd .Flags ().GetString (FlagGitRef )
94
95
gitRepo , _ := cmd .Flags ().GetString (FlagGitRepo )
95
96
creatAll , _ := cmd .Flags ().GetBool ("all" )
96
- validStoreTypes := getValidStoreTypes ("" , gitRef , gitRepo )
97
97
storeType , _ := cmd .Flags ().GetString ("name" )
98
98
listTypes , _ := cmd .Flags ().GetBool ("list" )
99
99
storeTypeConfigFile , _ := cmd .Flags ().GetString ("from-file" )
@@ -106,6 +106,8 @@ var storesTypeCreateCmd = &cobra.Command{
106
106
}
107
107
informDebug (debugFlag )
108
108
109
+ validStoreTypes := getValidStoreTypes ("" , gitRef , gitRepo )
110
+
109
111
// Authenticate
110
112
kfClient , _ := initClient (false )
111
113
@@ -505,7 +507,8 @@ func getStoreTypesInternet(gitRef string, repo string) (map[string]interface{},
505
507
fileName = "integration-manifest.json"
506
508
}
507
509
508
- url := fmt .Sprintf (baseUrl , repo , gitRef , fileName )
510
+ escapedGitRef := url .PathEscape (gitRef )
511
+ url := fmt .Sprintf (baseUrl , repo , escapedGitRef , fileName )
509
512
log .Debug ().
510
513
Str ("url" , url ).
511
514
Msg ("Getting store types from internet" )
0 commit comments