Browse files

dont run hub standalone in standalone mode

  • Loading branch information...
1 parent a882d72 commit fb5a21c460c9eee547b7a2c1180643217cd30a59 @defunkt defunkt committed Jan 23, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/hub/commands.rb
View
3 lib/hub/commands.rb
@@ -153,6 +153,7 @@ def browse(args)
# $ hub browse pjhyett/github-services
user, repo = args.last.split('/')
else
+ # $ hub browse github-services
user = github_user
repo = args.last
end
@@ -173,6 +174,8 @@ def hub(args)
require 'hub/standalone'
puts Hub::Standalone.build
exit
+ rescue LoadError
+ abort "hub is running in standalone mode."
end
def alias(args)

0 comments on commit fb5a21c

Please sign in to comment.