imathis/octopress — Issue #336: rake generate; rake deploy do not create new master commit
Author: petervandenabeele
Created: 2011-12-21 16:21:43+00:00
State: open

Hi,

I am lost about getting a new blog post pushed to github pages ...

The source is here

https://github.com/petervandenabeele/petervandenabeele.github.com/

I added the new blog post with
`rake new_post ...`

The blog is correctly generated with
`rake preview`
and I can see it perfectly OK on local port 4000.

When I run
`rake generate`
`rake deploy`
the code below executes, but none of that adds a commit to master,
so a git push to origin master does nothing (I presume that is the problem).

I am at loss how come this worked very gently for the first blog post and now
I am completely lost about how to get the second post online at Github ...

I presume the "Everything up-to-date" below is the culprit.

Thanks,

Peter

```
peterv@e6500:~/data/github/petervandenabeele/petervandenabeele.github.com$ rake generate
## Generating Site with Jekyll
unchanged sass/screen.scss
/home/peterv/.rvm/gems/ruby-1.9.3-p0@blog/gems/maruku-0.6.0/lib/maruku/input/parse_doc.rb:22:in `': iconv will be deprecated in the future, use String#encode instead.
Configuration from /home/peterv/data/github/petervandenabeele/petervandenabeele.github.com/_config.yml
/home/peterv/.rvm/gems/ruby-1.9.3-p0@blog/gems/ffi-1.0.9/lib/ffi/platform.rb:27: Use RbConfig instead of obsolete and deprecated Config.
Building site: source -> public
Successfully generated site: source -> public
peterv@e6500:~/data/github/petervandenabeele/petervandenabeele.github.com$ rake deploy
## Deploying branch to Github Pages
rm -rf _deploy/favicon.png
rm -rf _deploy/javascripts
rm -rf _deploy/atom.xml
rm -rf _deploy/CNAME
rm -rf _deploy/stylesheets
rm -rf _deploy/images
rm -rf _deploy/sitemap.xml
rm -rf _deploy/blog
rm -rf _deploy/index.html
rm -rf _deploy/assets

## copying public to _deploy
cp -r public/. _deploy
cd _deploy

## Commiting: Site updated at 2011-12-21 16:14:03 UTC
[source 4d7ae98] Site updated at 2011-12-21 16:14:03 UTC
6 files changed, 6 insertions(+), 6 deletions(-)

## Pushing generated _deploy website
Enter passphrase for key '/home/peterv/.ssh/id_rsa':
Everything up-to-date

## Github Pages deploy complete
cd -
peterv@e6500:~/data/github/petervandenabeele/petervandenabeele.github.com$ git checkout master
error: You have local changes to 'public/atom.xml'; cannot switch branches.
peterv@e6500:~/data/github/petervandenabeele/petervandenabeele.github.com$ git add .
peterv@e6500:~/data/github/petervandenabeele/petervandenabeele.github.com$ git commit -m "Atom changes"
[source 76f2e56] Atom changes
6 files changed, 6 insertions(+), 6 deletions(-)
```