The method tags does not return @tags explicitly, but relies on the result of the block to be returned
scm_cmd(*cmd_args) do |io|
@tags = io.readlines.sort!.map{|t| t.strip}
end
Line 97 of git_adapter_patch returns the StringIO objects from scm_cmd which can lead to the StringIO to be returned from the tags method. You could either not return retio from scm_cmd or also patch tags to return @tags after the loop.
The method
tags
does not return@tags
explicitly, but relies on the result of the block to be returnedLine 97 of git_adapter_patch returns the StringIO objects from
scm_cmd
which can lead to the StringIO to be returned from thetags
method. You could either not returnretio
fromscm_cmd
or also patchtags
to return@tags
after the loop.