report empty repositories

is there an easy way to report empty repositories in stash? We've got a lot of repositories in stash, but some of them are empty (there was never anything pushed to it).

I can do a query on filesize per project, but that's very expensive and causes a really high load on the stash server.

Is there some thing more lightweight to report all empty repositories in stash?

4 answers

1 accepted

ended up writing a script via rest api to get all the repository sizes. takes a long time, and puts a heavy load on the server, but I don't see any other way.

Doing a directory check in the Stash server is not that resource extensive, how many repositories do you have in data/repositories?

around 5000 repositories

That's double on what we have. So far, I know no Stash plugin that can give you this data. You can view all the Stash Project/Repo details in the Stash GUI (Admin >> Atlassian Support Tools >> System Information) but it will also take time.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,816 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you