capistrano/capistrano — pull request #458 by mhfs (2013-04-25 15:47:47+00:00)
Title: ArgumentError: wrong number of arguments(1 for 0) on to_s(true)

Hi there,

I'm facing this where the `to_s(true)` [here](https://github.com/capistrano/capistrano/blob/master/lib/capistrano/configuration/actions/invocation.rb#L182) is called in a regular array instead of a [`Branch`](https://github.com/capistrano/capistrano/blob/a5b50fd1888bfa2019ef48dd3d408339e6b2ac4e/lib/capistrano/command.rb#L19) resulting in this error:

```
ArgumentError: wrong number of arguments(1 for 0)
```

It seems it all started here https://github.com/capistrano/capistrano/commit/a5b50fd1888bfa2019ef48dd3d408339e6b2ac4e#L1R174.

Sorry for not providing a patch, I'm not sufficiently familiarized with capistrano internals for that. Although, with some guidance I'd be glad to help.

Thanks in advance.

/cc @mpapis