Permalink
Browse files

Fixed push commands for newer version of Git

  • Loading branch information...
1 parent 9d67b14 commit 52cef36080bcf134fe936631fb80158ce210aef2 Michael Schaefermeyer committed Mar 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/gitcycle.rb
View
@@ -550,9 +550,9 @@ def checkout_remote_branch(options={})
if branches(:match => target)
if yes?("You already have a branch called '#{target}'. Overwrite?")
- run("git push origin :#{target} -q")
+ run("git push origin :#{target}")
run("git checkout master -q")
- run("branch -D #{target}")
+ run("git branch -D #{target}")
else
run("git checkout #{target} -q")
run("git pull origin #{target} -q")
@@ -574,7 +574,7 @@ def checkout_remote_branch(options={})
end
puts "Pushing 'origin/#{target}'.\n".green
- run("git push origin #{target} -q")
+ run("git push origin #{target}")
end
def collab?(branch)

0 comments on commit 52cef36

Please sign in to comment.