I defined a source of a google cloud function as a google cloud repository. I changed my function source code, commit it and push into the repository by "git push --all google". I see a new version of the function code in the repository but the cloud function takes the old version.
So I need to deploy the new version of my function. I understood that I can't do it using console. When I try deploy it using SDK I recieve
gcloud functions deploy json_in_out --runtime nodejs8 --source https://source.developers.google.com/projects/mot_cz/repos/functions/demo/master/paths/json_in_out --trigger-http
ERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[The request has errors
Problems:
Source repository URL is invalid https://source.developers.google.com/projects/mot_cz/repos/functions/demo/master/paths/json_in_out does not match the expected pattern