{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/1738","labels_url":"https://api.github.com/repos/gogits/gogs/issues/1738/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/1738/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/1738/events","html_url":"https://github.com/gogits/gogs/issues/1738","id":110067160,"number":1738,"title":"Recreating a deleted repository gives error 500.","user":{"login":"andreynering","id":7011819,"avatar_url":"https://avatars.githubusercontent.com/u/7011819?v=3","gravatar_id":"","url":"https://api.github.com/users/andreynering","html_url":"https://github.com/andreynering","followers_url":"https://api.github.com/users/andreynering/followers","following_url":"https://api.github.com/users/andreynering/following{/other_user}","gists_url":"https://api.github.com/users/andreynering/gists{/gist_id}","starred_url":"https://api.github.com/users/andreynering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreynering/subscriptions","organizations_url":"https://api.github.com/users/andreynering/orgs","repos_url":"https://api.github.com/users/andreynering/repos","events_url":"https://api.github.com/users/andreynering/events{/privacy}","received_events_url":"https://api.github.com/users/andreynering/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/feedback%20needed","name":"feedback needed","color":"fbca04"},{"url":"https://api.github.com/repos/gogits/gogs/labels/reproduce%20needed","name":"reproduce needed","color":"bbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/gogits/gogs/milestones/9","html_url":"https://github.com/gogits/gogs/milestones/0.8.0","labels_url":"https://api.github.com/repos/gogits/gogs/milestones/9/labels","id":1226114,"number":9,"title":"0.8.0","description":"","creator":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"open_issues":76,"closed_issues":14,"state":"open","created_at":"2015-07-26T11:28:23Z","updated_at":"2015-11-03T14:57:15Z","due_on":null,"closed_at":null},"comments":21,"created_at":"2015-10-06T18:10:16Z","updated_at":"2015-11-03T15:11:31Z","closed_at":null,"body":"1. Create a repository with a name (let's say \"myrepository\")\r\n2. Push something to \"myrepository\"\r\n3. Delete \"myrepository\" on Gogs\r\n4. Try to create another repository called \"myrepository\"\r\n\r\nIt returns 500. I think this happens because the repository folder is not deleted, just the database registry. I tried to rename the folder and could create the repository again."},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/153384058","html_url":"https://github.com/gogits/gogs/issues/1738#issuecomment-153384058","issue_url":"https://api.github.com/repos/gogits/gogs/issues/1738","id":153384058,"user":{"login":"Unknwon","id":2946214,"avatar_url":"https://avatars.githubusercontent.com/u/2946214?v=3","gravatar_id":"","url":"https://api.github.com/users/Unknwon","html_url":"https://github.com/Unknwon","followers_url":"https://api.github.com/users/Unknwon/followers","following_url":"https://api.github.com/users/Unknwon/following{/other_user}","gists_url":"https://api.github.com/users/Unknwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Unknwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Unknwon/subscriptions","organizations_url":"https://api.github.com/users/Unknwon/orgs","repos_url":"https://api.github.com/users/Unknwon/repos","events_url":"https://api.github.com/users/Unknwon/events{/privacy}","received_events_url":"https://api.github.com/users/Unknwon/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T15:11:31Z","updated_at":"2015-11-03T15:11:31Z","body":"Also, can you help check the repo files are not `read-only`?"}}