Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldn't find remote ref gh-pages on 0.3.0 #33

Closed
coreyward opened this issue Apr 12, 2016 · 2 comments
Closed

Couldn't find remote ref gh-pages on 0.3.0 #33

coreyward opened this issue Apr 12, 2016 · 2 comments

Comments

@coreyward
Copy link

I'm getting the following error on 0.3.0 when trying to publish to a new repo:

$ rake publish
mkdir -p ~/website/build
cd ~/website
cd -
cd ~/website/build
git init
Initialized empty Git repository in ~/website/build/.git/
git remote add origin git@github.com:coreyward/website.git
git fetch --depth 1 origin gh-pages
fatal: Couldn't find remote ref gh-pages
rake aborted!
Command failed with status (128): [git fetch --depth 1 origin gh-pages...]
~/.rvm/gems/ruby-2.3.0/gems/middleman-gh-pages-0.3.0/lib/middleman-gh-pages/tasks/gh-pages.rake:42:in `block (2 levels) in <top (required)>'

The issue appears to have been introduced by the changes to git fetch in 37908b0. Specifying 68702c2 in my Gemfile and deleting the build directory results in the gh-pages branch being created on the remote successfully.

@rmm5t
Copy link
Member

rmm5t commented Apr 13, 2016

Thanks for the report. I'm a bit swamped at the moment, but I'll dig in as soon as I can.

@rmm5t rmm5t closed this as completed in 9464046 Apr 13, 2016
@rmm5t
Copy link
Member

rmm5t commented Apr 13, 2016

Try v0.3.1. You will probably have to first rm -rf build your build directory first, and then re-run bundle exec rake publish.

Sorry about the bug there. That was a kind of major issue for those who hadn't yet made a gh-pages branch. Thanks for pointing it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants