Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gitlab-shell
gitlab-shell
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 64
    • Issues 64
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Requirements
    • Requirements
    • List
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • gitlab-shellgitlab-shell
  • Issues
  • #92

Closed
Open
Created Jun 22, 2017 by Daniel@dlatypov

TypeError in gitlab_post_receive.rb

I'm not sure if this is right place for this, but I got the following stack trace when doing a push of a new branch

remote: /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_post_receive.rb:61:in `[]': no implicit conversion of String into Integer (TypeError)
remote: 	from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_post_receive.rb:61:in `print_merge_request_link'
remote: 	from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_post_receive.rb:57:in `block in print_merge_request_links'
remote: 	from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_post_receive.rb:57:in `each'
remote: 	from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_post_receive.rb:57:in `print_merge_request_links'
remote: 	from /opt/gitlab/embedded/service/gitlab-shell/lib/gitlab_post_receive.rb:38:in `exec'
remote: 	from hooks/post-receive:18:in `<main>'
remote:

I've checked the lines in the file and it seems plausible to me that there error might still be there. After looking at it a bit it seems that maybe the response to merge_request_urls is coming back as an array, especially since the code to compute the URL has changed in the latest commit.

Edited Jul 12, 2017 by Rémy Coutable
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None