#36 new
Alex Pretzlav

GitNub Fails in Repos With Spaces in Their Path

Reported by Alex Pretzlav | April 22nd, 2009 @ 08:29 PM

If I execute


 ~/School Now/169/feedback/coreapp alex$ nub

I get the following in console.log:

4/22/09 8:23:29 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323] sh: line 0: cd: /Users/alex/School: No such file or directory
4/22/09 8:23:29 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323] sh: line 0: cd: /Users/alex/School: No such file or directory 
4/22/09 8:23:38 PM GitNub[95323] InfoWindowController#awakeFromNib: NoMethodError: undefined method `git' for false:FalseClass 
4/22/09 8:23:38 PM GitNub[95323] CommitsController#perform_utility_action: NoMethodError: undefined method `git' for false:FalseClass 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/InfoWindowController.rb:23:in `awakeFromNib' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/ApplicationController.rb:91:in `show_info_panel' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:55:in `perform_utility_action' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/InfoWindowController.rb:23:in `awakeFromNib' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/ApplicationController.rb:91:in `show_info_panel' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/CommitsController.rb:55:in `perform_utility_action' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323] /Applications/GitNub.app/Contents/Resources/InfoWindowController.rb:23:in `awakeFromNib': undefined method `git' for false:FalseClass (NoMethodError) 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `ocm_send' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  from /System/Library/Frameworks/RubyCocoa.framework/Resources/ruby/osx/objc/oc_wrapper.rb:50:in `method_missing' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  from /Applications/GitNub.app/Contents/Resources/ApplicationController.rb:91:in `show_info_panel' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  from /Applications/GitNub.app/Contents/Resources/CommitsController.rb:55:in `perform_utility_action' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23:in `NSApplicationMain' 
4/22/09 8:23:38 PM [0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]  from /Applications/GitNub.app/Contents/Resources/rb_main.rb:23 
4/22/09 8:23:38 PM com.apple.launchd[168] ([0x0-0x6e06e].com.alternateidea.rubycocoa.GitNubApp[95323]) Exited with exit code: 1

However, if I


~/School Now/169/feedback/coreapp alex$ cd ~/Desktop
~/Desktop alex$ ln -s ~/School\ Now/169/feedback/coreapp coreapp
~/Desktop alex$ cd coreapp
~/Desktop/coreapp alex$ nub

Then everything works splendidly. I imagine the fix is fairly simple...

No comments found

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

Pages