scrooloose/snipmate-snippets — Issue #25: Symlinks minor problem when rake is run more than once
Author: obxhdx
Created: 2012-01-12 01:15:01+00:00
State: open

It happened to me that I ran 'rake' twice, and when I took a look at 'snippets' dir content, every folder in there had another symlink to the same location of its parent. e.g.:

After the first 'rake', the snippets folder looked like:

~/.vim/bundle/snipmate/snippets/ruby/foo.snippet
~/.vim/bundle/snipmate/snippets/ruby/bar.snippet
...

But After the second 'rake', the snippets folder looked like:

~/.vim/bundle/snipmate/snippets/ruby/ruby
~/.vim/bundle/snipmate/snippets/ruby/foo.snippet
~/.vim/bundle/snipmate/snippets/ruby/bar.snippet
...

Where this first entry ("ruby") is actually a symlink to its parent.

I commited a change to my fork that fixed this issue for me (e533598cda3a17a1e776bff296f5a93ba68fd46f). I can pull it if you think it worths.