# Opening empty repository -\> error 500

**URL:** https://forum.gitea.com/t/opening-empty-repository-error-500/1833
**Category:** Install/Maintain/Configure
**Created:** [January 23, 2020, 7:43am UTC](https://forum.gitea.com/t/opening-empty-repository-error-500/1833 "2020-01-23T07:43:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jackTheStark](https://avatars.discourse-cdn.com/v4/letter/j/f0a364/32.png) [@jackTheStark](https://forum.gitea.com/u/jackTheStark)
#### Post date: [January 23, 2020, 7:43am UTC](https://forum.gitea.com/t/opening-empty-repository-error-500/1833/1 "2020-01-23T07:43:57Z")

</div>

I am getting the same issue as [#6576](https://github.com/go-gitea/gitea/issues/6576) , I restored from linux-service v1.1.0 to docker v1.10.3.

When looking through the logs, this is what if found.

```auto
...ules/context/repo.go:627:func1() [E] GetBranches: No branches in non-empty repository /data/git/repositories/evo/digital_marketing.git

```

---

<div class="post-metadata">

### Author: ![yunyuyuan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/yunyuyuan/32/4033_2.png) [@yunyuyuan](https://forum.gitea.com/u/yunyuyuan)
#### Post date: [September 11, 2023, 8:43am UTC](https://forum.gitea.com/t/opening-empty-repository-error-500/1833/2 "2023-09-11T08:43:07Z")

</div>

Same issue, I have a mirro github repo, and don’t know why it return this error, becasue it is a mirro repo, so I can’t push a branch to it 🤣.  
If you just want to delete this repo, I found a solution:

1. First, remove the folder of your repo:

```sh
rm -rf /path/to/your/gitea/git/repositories/your_name/your_repo.git/

```

1. Then, run the task:  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/gitea/original/2X/c/cbe1763f676c6be5aa50abe6a66a09d2d6a64525.png)
