diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git-cal.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Formula/git-cal.rb b/Library/Formula/git-cal.rb index a0aec4a7c..98f66ba15 100644 --- a/Library/Formula/git-cal.rb +++ b/Library/Formula/git-cal.rb @@ -10,8 +10,9 @@ class GitCal < Formula end test do - # git-cal fails when run outside of a git repo, so - # switch to #{bin} before testing it. - system "cd #{bin}; #{bin}/git-cal" + # git-cal fails when run outside of a git repo. + HOMEBREW_REPOSITORY.cd do + system "#{bin}/git-cal" + end end end |
