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

0 votes
Accepted answer

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
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

212 views 3 7
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