Hi,
I think I've found a bug-- if I run a task that uses the variable
current_release (which bundler does in the task in bundler/capistrano)
in --dry-run mode, I get:

deploy.rb:59:in `join': can't convert nil into String (TypeError)

(full stacktrace and minimal steps needed to reproduce here:
https://gist.github.com/1032697 )

This is because in a dry run, releases is an empty array, and
current_release does File.join with releases.last, which is nil.

I think the solution would be to do a similar check that
previous_release does (releases.length > 1) and if that is false,
return empty string.

I've started reading through the tests but I'm a little lost as to
what is mocked where and where a test illustrating this issue would
best go.

So my questions are:

* Is this indeed a bug?
* Is my solution a good idea?
* Where would a test for this problem go?
* Lighthouse is still being used for issues, and I should file one
before submitting a patch, correct?

Thank you!
-Carol Nichols

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to