lib/git/lint/branches/environments/netlify_ci.rb in git-lint-2.1.0 vs lib/git/lint/branches/environments/netlify_ci.rb in git-lint-2.2.0
- old
+ new
@@ -19,10 +19,10 @@
end
def commits
shell.capture3 "git remote add -f origin #{environment["REPOSITORY_URL"]}"
shell.capture3 "git fetch origin #{name}:#{name}"
- repository.commits "origin/master..origin/#{name}"
+ repository.commits "origin/#{repository.branch_default}..origin/#{name}"
end
private
attr_reader :repository, :shell, :environment