Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove unused 'pushed.repo', and 'remote exists.repo' which it depend…

…s on.
  • Loading branch information...
commit 5d4ae99fca0e001898b599a6caae2780d3baf95a 1 parent b007d6c
@benhoskings authored
Showing with 0 additions and 26 deletions.
  1. +0 −26 git.rb
View
26 git.rb
@@ -63,29 +63,3 @@
met? { !shell('git config --global github.token').blank? }
meet { shell("git config --global github.token '#{var(:github_token)}'")}
end
-
-dep 'pushed.repo' do
- requires 'remote exists.repo'
- setup { repo.repo_shell "git fetch #{var(:remote_name)}" }
- met? {
- repo.repo_shell("git rev-parse --short #{var(:deploy_ref)}") ==
- repo.repo_shell("git rev-parse --short #{var(:remote_name)}/#{var(:deploy_ref)}")
- }
- meet { repo.repo_shell "git push #{var(:remote_name)} #{var(:deploy_ref)}", :log => true }
-end
-
-dep 'remote exists.repo' do
- def remote_url
- repo.repo_shell("git config remote.#{var(:remote_name)}.url")
- end
- met? { remote_url == var(:remote_url) }
- meet {
- if remote_url.blank?
- log "The #{var(:remote_name)} remote isn't configured."
- repo.repo_shell("git remote add #{var(:remote_name)} '#{var(:remote_url)}'")
- elsif remote_url != var(:remote_url)
- log "The #{var(:remote_name)} remote has a different URL (#{var(:remote_url)})."
- repo.repo_shell("git remote set-url #{var(:remote_name)} '#{var(:remote_url)}'")
- end
- }
-end
Please sign in to comment.
Something went wrong with that request. Please try again.