I have used the following curl command to get the file from particular branch unde the repo ,But I always get an empty file.Following is the command
curl -G http://stash.xxx.com:80808/projects/test.properties -d at=refs/branch/master -d raw >test.properties
Is there any issue with the command?
Hi Mike,
Thanks for the response.I do able to get the file now.But it contains the HTML Tags eventhough i use '-d raw' parameter.
Hi,
Your cURL command is OK, but you need to substitute "branch" with "heads" in "refs/branch/master".
Hope this helps.
Cheers,
Michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.