Permalink
Browse files

gh create-from-local - fixed quoting bug to prevented project creation

  • Loading branch information...
drnic committed Dec 16, 2009
1 parent 6f99b30 commit 52b1be05dc63448f90ca35f7fce94c558ebd4ce6
Showing with 4 additions and 2 deletions.
  1. +2 −1 History.txt
  2. +2 −1 lib/commands/commands.rb
View
@@ -1,7 +1,8 @@
-== 0.4.1 NOT YET RELEASED
+== 0.4.1
Updated Commands:
* gh home - no longer appends /tree/master to the end of the URL
+ * gh create-from-local - fixed quoting bug to prevented project creation
== 0.4.0
View
@@ -233,7 +233,8 @@
repo = File.basename(cwd)
is_repo = !git("status").match(/fatal/)
raise "Not a git repository. Use gh create instead" unless is_repo
- sh "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{!options[:private].inspect} -F 'login=#{github_user}' -F 'token=#{github_token}' http://github.com/repositories"
+ puts "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{!options[:private].inspect}' -F 'login=#{github_user}' -F 'token=#{github_token}' http://github.com/repositories"
+ sh "curl -F 'repository[name]=#{repo}' -F 'repository[public]=#{!options[:private].inspect}' -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

0 comments on commit 52b1be0

Please sign in to comment.