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 Join to answer
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...

649 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot