@@ -2206,8 +2206,8 @@ func validateAndProcessPlan(plan string, shouldProcess bool) (string, error) {
2206
2206
return "" , fmt .Errorf ("'spec.sourceDir' is missing from the plan" )
2207
2207
} else if pSpecSourceDir , ok := pSpecSourceDirI .(string ); ! ok {
2208
2208
return "" , fmt .Errorf ("'spec.sourceDir' is not a string. Actual value is %+v of type %T" , pSpecSourceDirI , pSpecSourceDirI )
2209
- } else if pSpecSourceDir != SOURCES_DIR && pSpecSourceDir != "" && ! strings .HasPrefix (pSpecSourceDir , "git+https:// " ) {
2210
- return "" , fmt .Errorf ("'spec.sourceDir' is invalid. Expected 'source' or 'git+https://<remote repo url> . Actual: %s" , pSpecSourceDir )
2209
+ } else if pSpecSourceDir != SOURCES_DIR && pSpecSourceDir != "" && ! strings .HasPrefix (pSpecSourceDir , "git+" ) {
2210
+ return "" , fmt .Errorf ("'spec.sourceDir' is invalid. Expected 'source' or 'git+[ https|ssh] ://<remote repo url> . Actual: %s" , pSpecSourceDir )
2211
2211
} else {
2212
2212
// TODO: better processing of the plan
2213
2213
pMeta ["name" ], _ = common .NormalizeName (pMetaName )
@@ -2333,7 +2333,7 @@ func (fs *FileSystem) runPlan(currentRunDir string, currentRunConfigPaths []stri
2333
2333
}
2334
2334
// update state
2335
2335
logrus .Debug ("planning finished. inside Update. just before update start" )
2336
- if strings .HasPrefix (currentRunSrcDir , "git+https:// " ) {
2336
+ if strings .HasPrefix (currentRunSrcDir , "git+" ) {
2337
2337
project .Status [types .ProjectStatusRemoteInputSources ] = true
2338
2338
}
2339
2339
project .Status [types .ProjectStatusPlanning ] = false
0 commit comments