diff options
| author | Mike McQuaid | 2017-09-02 15:53:32 +0100 |
|---|---|---|
| committer | GitHub | 2017-09-02 15:53:32 +0100 |
| commit | 3bb98714afd42dc0d62da2e09e07c79e168054d9 (patch) | |
| tree | 735ca0afb24067b8284c5507283987322d881b55 /Library/Homebrew/utils/git.rb | |
| parent | dce1e91c6f604d088a9ae6b0490e06cc1f53ae9d (diff) | |
| parent | 784250d55099f16d8b9c3553a219d603c200cb6b (diff) | |
| download | brew-3bb98714afd42dc0d62da2e09e07c79e168054d9.tar.bz2 | |
Merge pull request #2955 from mansimarkaur/git_tests
Added tests for utils/git
Diffstat (limited to 'Library/Homebrew/utils/git.rb')
| -rw-r--r-- | Library/Homebrew/utils/git.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/utils/git.rb b/Library/Homebrew/utils/git.rb index 43d93b64e..1fc01188c 100644 --- a/Library/Homebrew/utils/git.rb +++ b/Library/Homebrew/utils/git.rb @@ -16,8 +16,7 @@ module Git def last_revision_of_file(repo, file, before_commit: nil) relative_file = Pathname(file).relative_path_from(repo) - commit_hash = last_revision_commit_of_file(repo, file, before_commit: before_commit) - + commit_hash = last_revision_commit_of_file(repo, relative_file, before_commit: before_commit) out, = Open3.capture3( HOMEBREW_SHIMS_PATH/"scm/git", "-C", repo, "show", "#{commit_hash}:#{relative_file}" |
