Skip to content

Commit

Permalink
Merge pull request #12 from Akinari1087/remove-master
Browse files Browse the repository at this point in the history
Remove master reference from cookbook-wrapper
  • Loading branch information
mattlqx authored Aug 18, 2020
2 parents 0f9e910 + 2441c5e commit e9a0264
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To check Chef cookbook version bumps, use the `chef-cookbook-version` hook. Each
To unit test Ruby changes in your repo, use the `rspec` hook. Each path in your repo with a `spec` directory should have a `Gemfile` that includes your desired version of rspec (or a derivative library). It will be installed via Bundler prior to testing. Rspec will only be run against the closest directory in a changed file's path with a spec dir.

- repo: https://github.com/mattlqx/pre-commit-ruby
rev: v1.3.2
rev: v1.3.3
hooks:
- id: rubocop
- id: foodcritic
Expand Down
2 changes: 1 addition & 1 deletion bin/cookbook-wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def higher?(old_version, new_version)

def file_from_git_history(path)
prefix = path.start_with?('/') ? '' : './'
IO.popen("git show origin/master:#{prefix}#{path}", err: :close, &:read)
IO.popen("git show origin:#{prefix}#{path}", err: :close, &:read)
end

# Simple metadata.rb reader
Expand Down

0 comments on commit e9a0264

Please sign in to comment.