diff --git a/cmd/gctsDeploy.go b/cmd/gctsDeploy.go index d9568d0a48..82d70b252f 100644 --- a/cmd/gctsDeploy.go +++ b/cmd/gctsDeploy.go @@ -81,7 +81,7 @@ func gctsDeployRepository(config *gctsDeployOptions, telemetryData *telemetry.Cu repoMetadataInitState, getRepositoryErr := getRepository(config, httpClient) currentBranch := repoMetadataInitState.Result.Branch // If Repository does not exist in the system then Create and Clone Repository - if getRepositoryErr != nil { + if getRepositoryErr != nil || repoMetadataInitState.Result.Rid == "" { // If scope is set for a new repository then creation/cloning of the repository cannot be done if config.Scope != "" { log.Entry().Error("Error during deploy : deploy scope cannot be provided while deploying a new repo") @@ -824,7 +824,7 @@ type getRepositoryResponseBody struct { Value string `json:"value"` Category string `json:"category"` } `json:"config"` - Objects int64 `json:"objects"` + Objects any `json:"objects"` CurrentCommit string `json:"currentCommit"` Connection string `json:"connection"` } `json:"result"`