Hi Guys,
I am able to Post/upload files in bitbucket cloud using rest api (https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-post) but it generate same blobid/object id/object name for all uploaded files. Can you please suggest me the solution , so on every upload of a file rest API should generate unique/different blobid/object name. I am referring bloblid/object name for below highlighted RED area, i am getting same 7489acc for all uploaded files which is incorrect. I use "View raw commit" option to find it on bitbucket cloud url.
Hi Mohan and welcome to the community!
Can you please confirm if the files you are uploading have the same content?
If you pull these commits locally in a clone of a repo and then run
git show 7489acc
you will get the contents of the file.
Committing files with the same content will show you the same hash in the red-circled area from your screenshot. This is not specific to the API.
You can try the same locally with a git commit command in a clone of a repo, for testing purposes, i.e.:
Then run git show for each of the two commits created. The second hash in the index part of the output will be the same for both git show commands.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome, Mohan. Please feel free to reach out if you ever need anything else!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Validate your expertise in managing Jira Service Projects for Cloud. Master configuration, optimize workflows, and manage users seamlessly. Earn global 🗺️ recognition and advance your career as a trusted Jira Service management expert.
Get Certified! ✍️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.