I'm looking to automatically clone a public git repo using the UAPI. The following code is working as far as creating a git repository into the public_html, however it's not actually cloning the remote repo. Am I missing something that would make it clone the remote repo?
Example:
And that returns the following:
So now I have a .git folder in my public_html but it didn't clone any files from the remote repository. My end goal is to push to my remote repo and then pull those changes into public_html.
Any ideas what I'm missing? Thanks!
Example:
Code:
https://www.domain.com:2083/cpsess3276056603/execute/VersionControl/create?type=git&name=test&repository_root=%2Fhome%2Ftest%2Fpublic_html&branch=master&source_repository%3D%27%7B%22remote_name%22%3A%22origin%22%2C%22url%22%3A%22https%3A%2F%2Fmycompany%40bitbucket.org%2Fmycompany%2Ftest.git%22%7D%27
And that returns the following:
JSON:
{"status":1,"messages":null,"warnings":null,"metadata":{},"errors":null,"data":{"name":"test","tasks":[],"last_update":null,"available_branches":[],"deployable":0,"repository_root":"/home/test/public_html","last_deployment":null,"clone_urls":{"read_write":["ssh://[email protected]:7822/home/test/public_html"],"read_only":[]},"type":"git","branch":null}}
Any ideas what I'm missing? Thanks!