Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Jan 29, 2015
1 parent 3bffd4b commit 2dc0ca6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/github.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Ruhoh
class Publish::Github
def run(opts={}, config={})
# return false unless can_switch_branch?
return false unless can_switch_branch?

_deploy_type = project_page? ? "Project" : "User/Org"
_source_branch = source_branch
Expand All @@ -26,12 +26,11 @@ def run(opts={}, config={})

if deploy_branch?
puts "Currently in deploy branch: '#{ deploy_branch }'; switching to source branch: '#{ source_branch }'..."
# `git checkout #{ source_branch }`
`git checkout #{ source_branch }`
end

ruhoh = compile

return
# Add to deploy_branch
return false unless checkout_deploy_branch
system("git", "rm", "-rf", ".")
Expand Down

0 comments on commit 2dc0ca6

Please sign in to comment.