imathis/octopress — Issue #237: vim's undo-files break deployment
Author: nilsr
Created: 2011-10-21 14:58:38+00:00
State: open

I use vim to write my posts. It's vim's nature to create "undo" files (some sort of built-in SCM). When I created or edited a post, such a file is created and running `rake deploy` will cause deployment to break with:

source $ rake deploy;
Counting objects: 9, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 440 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
To git@github.com:nilsr/nilsr.github.com.git
3550bf9..449749a source -> source
rake aborted!
No such file or directory - public/_posts/.2011-10-21-hello-world.markdown.un~

So currently I use a `find . -name \*un~ | xargs rm`, when I want to deploy my changes – which is really nasty.