我正在尝试为Gitlab CI设置pronto,在本地一切正常,但是当pronto在Gitlab CI上运行时,“ Rugged :: ReferenceError:revspec'origin / master'not found / not found / master'not found”出现错误
cache:
paths:
- vendor/
services:
- name: mysql:8.0
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--default-authentication-plugin=mysql_native_password"]
variables:
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
DB_USERNAME: $DB_USERNAME
DB_HOST: $DB_HOST
DISABLE_SPRING: 1
before_script:
- cp config/database.yml.example config/database.yml
- apt-get update -qq && apt-get install -y -qq cmake
- gem install bundler --no-document
- bundle check || bundle install --path vendor --jobs $(nproc) "${FLAGS[@]}"
spec:
script:
- bundle exec rspec
pronto:
script:
- bundle exec pronto run -c origin/master --exit-code
Rugged::ReferenceError: revspec 'origin/master' not found
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto/git/repository.rb:87:in `merge_base'
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto/git/repository.rb:87:in `merge_base'
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto/git/repository.rb:17:in `diff'
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto.rb:62:in `run'
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto/cli.rb:66:in `block in run'
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto/cli.rb:64:in `chdir'
vendor/ruby/2.6.0/gems/pronto-0.10.0/lib/pronto/cli.rb:64:in `run'
vendor/ruby/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in `run'
vendor/ruby/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in `invoke_command'
vendor/ruby/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in `dispatch'
vendor/ruby/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in `start'
vendor/ruby/2.6.0/gems/pronto-0.10.0/bin/pronto:6:in `<top (required)>'
vendor/ruby/2.6.0/bin/pronto:23:in `load'
vendor/ruby/2.6.0/bin/pronto:23:in `<top (required)>'
我希望在gitlab上运行pronto而不会出现异常