#30 ✓resolved
bgausden

Crash on Startup - undefined method 'head' for #<Grit::Repo "/Users.../.git">

Reported by bgausden | October 15th, 2008 @ 12:23 AM

Cloned repo ran through install instructions, crashes on launch from 'nub'

15/10/2008 3:17:21 PM GitNub[6968] CommitsController#awakeFromNib: NoMethodError: undefined method head' for #<Grit::Repo "/Users/barryg/Documents/NightlyScript/.git"> 15/10/2008 3:17:21 PM Spirited Away[349] *** Assertion failure in -[NSMenu itemAtIndex:], /SourceCache/AppKit/AppKit-949.35/Menus.subproj/NSMenu.m:819 15/10/2008 3:17:21 PM Spirited Away[349] Exception raised during posting of notification. Ignored. exception: 'Invalid parameter not satisfying: (index >= 0) && (index < (_itemArray ? CFArrayGetCount((CFArrayRef)_itemArray) : 0))' invoked observer method: '*** -[Controller notified:]' observer: 0x33b650 notification name: 'NSWorkspaceDidTerminateApplicationNotification' 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] /Applications/GitNub.app/Contents/Resources/CommitsController.rb:277:infetch_git_branch' 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] /Applications/GitNub.app/Contents/Resources/CommitsController.rb:46:in awakeFromNib' 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:inNSApplicationMain' 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] /Applications/GitNub.app/Contents/Resources/CommitsController.rb:277:in fetch_git_branch': undefined methodhead' for #<Grit::Repo "/Users/barryg/Documents/NightlyScript/.git"> (NoMethodError) 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:46:in awakeFromNib' 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:inNSApplicationMain' 15/10/2008 3:17:21 PM [0x0-0x1c41c4].com.alternateidea.rubycocoa.GitNubApp[6968] from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 15/10/2008 3:17:21 PM com.apple.launchd317 Exited with exit code: 1

Comments and changes to this ticket

  • Justin Palmer

    Justin Palmer October 15th, 2008 @ 10:21 AM

    Looks like your copy of grit might be old. cd into lib/grit and git pull, clean, then rebuild.

  • bgausden

    bgausden October 15th, 2008 @ 08:31 PM

    • Tag set to crash, grit

    Sorted now - yes was an old version of grit.

    So when installing, it's necessary to clone gitnub, pull the latest grit (just in case), build/install grit (and dependencies) manually, then build and deploy gitnub?

  • Justin Palmer

    Justin Palmer October 15th, 2008 @ 11:11 PM

    • State changed from “new” to “resolved”

    Shouldn't have to build or install dependencies, they're included, but the nature of git submodules means they need to be pulled separately from the main repo.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages