koppen/redmine_github_hook — Issue #17: To work on windows, the commands need to be slightly changed
Author: quentez
Created: 2012-01-09 01:12:46+00:00
State: open

The commands are executed through CMD on Windows. And simple-quote strings are not playing nice with it.

For it to work, I had to replace:

"git --git-dir='#{repository.url}' #{command}"

By:

"git --git-dir=\"#{repository.url}\" #{command}"

And:

"fetch origin '+refs/heads/*:refs/heads/*'"

By:

"fetch origin \"+refs/heads/*:refs/heads/*\""

I don't know if those changes wouldn't brake on linux/mac, that's why I didn't make it a pull request. But if it's the case, maybe there would be a way to check for the OS before issuing the commands.

Apart from that, awesome plugin ^^ !

Regards.