For performance reasons I'd like to create a tag without cloning a repo. As far as I can see there is no API of any kind to create tags on stash repos.
My question is, would there be any impact in using git tag directly on the stash repo location?
Community moderators have prevented the ability to post new answers.
Hi Javier,
I don't believe Stash has any special treatment for tags over what native git does. There may be some short-lived caches in the product that I'm not aware of, but I think creating tags directly in the repository on disk should work just fine.
cheers,
Tim
Do remember to stop the stash server while doing this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Balazs, You shouldn't need to do this. What makes you think that you'd need to stop Stash before creating a tag? cheers, Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just to be on the safe side, when I manipulate the bare repos on the server, I always stop the server. I guess it may not be necessary for creating a tag, though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Tim. I tried with the atlassian SDK and it's working. Hope it will work in the same way in production!! Also, no stash server restart was necessary
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.