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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.