HubPress / hubpress.io

A web application to build your blog on GitHub
MIT License
2.81k stars 2.63k forks source link

Cannot update post - 422 Invalid Request #463

Closed pdudits closed 7 years ago

pdudits commented 7 years ago

Hello,

Upon attempt to save or publish my the post after I initially saved it, I get Post not saved, see your browser console.

The console says

{
  "message": "Invalid request.\n\n\"sha\" wasn't supplied.",
  "documentation_url": "https://developer.github.com/v3/repos/contents/"
}

A previous version is already existing in the gh_pages branch, but cannot be updated.

anthonny commented 7 years ago

Hi @pdudits,

In the settings of your repository, you must set the branch gh-pages as the default branch.

pdudits commented 7 years ago

Oh yes, should've paid more attention to Readme file.

Thanks!