Hello,
We are evaluating stash and have used git internally for a few years. Currently, we have some automation that runs
git gc --auto
and
git fsck --strict
to maintain/optimize our repos. Does stash provide anything like or does Atlassian have any recommendations?
Are the actual *.git directories available on the stash server for running commands like this?
thanks,
Garret
Hi Garret,
Check out this plugin I wrote just a couple of days ago - it allows you to trigger GC either from rest or from the UI.
https://marketplace.atlassian.com/plugins/com.atlassian.stash.plugin.stash-git-ops-plugin
It doesn't have support for triggering fsck, but I could add that in if you need it. How would you expect that to run?
Seb
Alternatively yes, you can log into the Stash instance and run the commands yourself. The repositories' bare clones are stored in the STASH_HOME directory.
Thanks Seb - I'll check out the plugin. I need to upgrade to stash 2.0 first :)
We just run fsck as mentioned above on a weekly basis.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We're planning on retiring the ops plugin in the near future. Stash automatically takes care of periodic garbage collection and optimisation, so you don't have to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello
I've installed the plugin on Stash 3.2.1 and I got "HTTP Status 400 - HTTP method POST is not supported by this URL" when I click on trigger gc ...
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.