GitbookIO / gitbook

The open source frontend for GitBook doc sites
https://www.gitbook.com
GNU General Public License v3.0
27.13k stars 3.87k forks source link

Webhook problem - how to fix corrupted loose reference #754

Closed friedger closed 9 years ago

friedger commented 9 years ago

We have an issue on https://www.gitbook.com/book/gdg-wisdom/gdg-wisdom-2015/dashboard with the webhook. The response is a 500

Corrupted loose reference file: refs/remotes/github/master

As we don't have access to the files on the gitbook server how can we fix this issue? Detaching and re-attaching our github repo didn't change anything. Pushing to both repos from the command line is working fine.

Maybe you could add a "re-import" button somewhere that deletes the repo folder on clones from github again.

AaronO commented 9 years ago

Hi @friedger,

Sorry about that, I just fixed your repo. An empty ref file was preventing our git server from fetching your GitHub repo after receiving a WebHook.

Give it a try now, it should work as expected.

Sorry for the inconvenience.

dw8547 commented 8 years ago

Hi @AaronO I have the same problem with a private book. The book is not being updated & I'm getting the following error message when I check the webhook:

{"ok":false,"event":"push","error":"Corrupted loose reference file: refs/remotes/github/master"}.

When I used the online editor to make changes to the book the GitHub repo is updated just fine, the same is true when I modify the book in the local repository & push to the remote repository. However, the changes don't appear in the book.

Would you be able to help? Any suggestions would be appreciated.

Mooday commented 6 years ago

Hi I'm having the same issue image Out of nowhere it gives me the "corrupted loose reference file: refs/remote/origin/master" error. Needing help, this project is for today :(