Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #2246

Closed
Open
Created Dec 10, 2012 by Administrator@rootOwner

[bug] Incorrect URL in post-receive JSON data for commits

Created by: rlaneve

Within roles/push_observer.rb, the url generated for each commit being included in the post_receive_data uses:

"#{Gitlab.config.url}/#{path}/commits/#{commit.id}"

Such a URL always returns the full list of commits for the related repo.

To display the specific commit as intended, it should actually be the singular form of the word "commit", like this:

"#{Gitlab.config.url}/#{path}/commit/#{commit.id}"

Relevant file+line here: https://github.com/gitlabhq/gitlabhq/blob/master/app/roles/push_observer.rb#L117

Assignee
Assign to
Time tracking