Skip to content
Browse files

Only push master, not other branches

Continues d1aea34
  • Loading branch information...
1 parent 77910de commit 85a8b7e2f2902268dca74df74fa1cc6aa4b462e8 @bronson bronson committed
Showing with 1 addition and 9 deletions.
  1. +1 −9 scraper
View
10 scraper
@@ -1289,14 +1289,6 @@ def remote_url script
end
-def repo_heads repo
- path = "#{repo.path}/refs/heads"
- Dir.entries(path).select { |f|
- test ?f, "#{path}/#{f}"
- }
-end
-
-
def perform_push repo_name
return unless repo_name
github = GitHub.new
@@ -1330,7 +1322,7 @@ def perform_push repo_name
args = ['--tags']
args << '--force' if ENV['FORCE']
args << 'origin'
- args.push *repo_heads(repo)
+ args << 'master'
repo.push *args
end
end

0 comments on commit 85a8b7e

Please sign in to comment.
Something went wrong with that request. Please try again.