Skip to content

If the branch does not exists the backporter fails with NoMethodError #9

Description

@alecslupu
error: pathspec 'develop' did not match any file(s) known to git
/opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/lib/decidim/maintainers_toolbox/git_backport_manager.rb:63:in `checkout_develop': undefined method `exit_with_errors' for class Decidim::MaintainersToolbox::GitBackportManager (NoMethodError)
        exit_with_errors(error_message) unless $CHILD_STATUS.exitstatus.zero?
        ^^^^^^^^^^^^^^^^
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/lib/decidim/maintainers_toolbox/git_backport_manager.rb:36:in `block in call'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/lib/decidim/maintainers_toolbox/git_backport_manager.rb:34:in `chdir'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/lib/decidim/maintainers_toolbox/git_backport_manager.rb:34:in `call'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/lib/decidim/maintainers_toolbox/backporter.rb:58:in `make_cherrypick_and_branch'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/lib/decidim/maintainers_toolbox/backporter.rb:29:in `call'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/exe/decidim-backporter:34:in `backport'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/base.rb:584:in `start'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/lib/ruby/gems/3.3.0/gems/decidim-maintainers_toolbox-0.3.0/exe/decidim-backporter:48:in `<top (required)>'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/bin/decidim-backporter:25:in `load'
	from /opt/hostedtoolcache/Ruby/3.3.4/x64/bin/decidim-backporter:25:in `<main>'
Command failed with exit 1: decidim-backporter

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions