Failure in `db-check-schema` in gitlab-foss
The regenerate-schema
script fails with Failed to download file: 302 Found
:
$ scripts/regenerate-schema
$ git checkout 82f5f2485b37ea938d11181f3e05ddf35ab1959e
M spec/fixtures/git-cheat-sheet.pdf
HEAD is now at 82f5f248 Add latest changes from gitlab-org/gitlab@master
$ git clean -f -- db
fatal: Not a valid object name master
scripts/regenerate-schema:77:in `block (2 levels) in download_schema': Failed to download file: 302 Found (RuntimeError)
from /usr/local/lib/ruby/2.6.0/net/http.rb:1518:in `block in transport_request'
from /usr/local/lib/ruby/2.6.0/net/http/response.rb:165:in `reading_body'
from /usr/local/lib/ruby/2.6.0/net/http.rb:1517:in `transport_request'
from /usr/local/lib/ruby/2.6.0/net/http.rb:1479:in `request'
from scripts/regenerate-schema:76:in `block in download_schema'
from /usr/local/lib/ruby/2.6.0/net/http.rb:920:in `start'
from /usr/local/lib/ruby/2.6.0/net/http.rb:605:in `start'
from scripts/regenerate-schema:73:in `download_schema'
from scripts/regenerate-schema:65:in `remote_checkout_clean_schema'
from scripts/regenerate-schema:52:in `checkout_clean_schema'
from scripts/regenerate-schema:25:in `block in execute'
from scripts/regenerate-schema:23:in `chdir'
from scripts/regenerate-schema:23:in `execute'
from scripts/regenerate-schema:194:in `<main>'
Downloading https://gitlab.com/db/structure.sql...