Browse files

no awkward symbol-strings

  • Loading branch information...
1 parent 44730f8 commit e427245d51ec7759f8907453f571abd9a1d559de @defunkt defunkt committed Dec 3, 2008
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/commands/commands.rb
View
8 lib/commands/commands.rb
@@ -135,7 +135,7 @@
desc "Generate the text for a pull request."
usage "github pull-request [user] [branch]"
-command :'pull-request' do |user, branch|
+command 'pull-request' do |user, branch|
if helper.project
die "Specify a user for the pull request" if user.nil?
user, branch = user.split('/', 2) if branch.nil?
@@ -178,12 +178,12 @@
end
desc "Create a new GitHub repository from the current local repository"
-command :'create-from-local' do
+command 'create-from-local' do
cwd = sh "pwd"
repo = File.basename(cwd)
is_repo = !git("status").match(/fatal/)
- raise "Not a git repository. Use gh create instead" unless is_repo
+ raise "Not a git repository. Use gh create instead" unless is_repo
sh "curl -F 'repository[name]=#{repo}' -F 'login=#{github_user}' -F 'token=#{github_token}' http://github.com/repositories"
git "remote add origin git@github.com:#{github_user}/#{repo}.git"
git_exec "push origin master"
-end
+end

0 comments on commit e427245

Please sign in to comment.