edgecase/middleman-gh-pages

Windows support? error: pathspec 'gh-pages' did not match any file(s) known to git.

lolmaus opened this issue · 2 comments

Middleman-gh-pages runs fine on Linux.

But when i try to rake publish on Windows, i receive:

git commit -m 'initial gh-pages commit'
error: pathspec 'gh-pages' did not match any file(s) known to git.
error: pathspec 'commit'' did not match any file(s) known to git.
rake aborted!

Full log: https://gist.github.com/lolmaus/7372898

Hi @lolmaus

I had the same issue on Windows.

I fixed that by changing the line 27 of the file gh-page.rake for

sh "git commit -m 'init'"

For me, this file is in the directory C:\Ruby200\lib\ruby\gems\2.0.0\gems\middleman-gh-pages-0.0.2\lib\middleman-gh-pages\tasks

rmm5t commented

This should now be fixed thanks to #21