lib/git/lint/branches/environments/travis_ci.rb in git-lint-2.1.0 vs lib/git/lint/branches/environments/travis_ci.rb in git-lint-2.2.0

- old
+ new

@@ -18,11 +18,11 @@ pull_request_branch.empty? ? ci_branch : pull_request_branch end def commits prepare_project - repository.commits "origin/master..#{name}" + repository.commits "origin/#{repository.branch_default}..#{name}" end private attr_reader :environment, :repository, :shell @@ -33,10 +33,10 @@ unless slug.empty? shell.capture3 "git remote add -f original_branch https://github.com/#{slug}.git" shell.capture3 "git fetch original_branch #{name}:#{name}" end - shell.capture3 "git remote set-branches --add origin master" + shell.capture3 "git remote set-branches --add origin #{repository.branch_default}" shell.capture3 "git fetch" end def ci_branch environment["TRAVIS_BRANCH"]