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
  • #3244

Closed
Open
Created Mar 17, 2013 by Administrator@rootOwner

Error viewing commits from repository: NoMethodError (undefined method `>>' for "x":String)

Created by: JoeKun

I just installed GitLab master (5.0 beta) on Debian Wheezy using rvm and ruby 2.0.0-p0.

So far, everything worked ok until I pushed an initial commit to a test repo, and tried to view that activity on the GitLab web site.

My username is joel and my repository is test. Here's what I see in the logs:

Started GET "/joel/test" for 50.193.62.69 at 2013-03-17 13:31:15 -0700
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"joel/test"}
Completed 500 Internal Server Error in 15ms

NoMethodError (undefined method `>>' for "x":String):
  app/models/commit.rb:22:in `find_or_first'
  app/models/repository.rb:38:in `commit'
  app/models/repository.rb:101:in `has_commits?'
  app/models/repository.rb:107:in `empty?'
  app/controllers/projects_controller.rb:60:in `block (2 levels) in show'
  app/controllers/projects_controller.rb:58:in `show'


Started GET "/static.css" for 50.193.62.69 at 2013-03-17 13:31:16 -0700
Processing by ProjectsController#show as HTML
  Parameters: {"id"=>"static.css"}
  Rendered public/404.html (0.0ms)
Filter chain halted as :project rendered or redirected
Completed 404 Not Found in 3ms (Views: 0.5ms | ActiveRecord: 0.8ms)

I looked very hard and couldn't find any usage of >> in the find_or_first method in commit.rb. So I'm not sure what's going on here.

Any help would be greatly appreciated.

Assignee
Assign to
Time tracking