diff options
| author | Jack Nagel | 2012-05-04 17:56:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-05-04 17:56:25 -0500 |
| commit | e00e99632f859013274653063e086a048bf668f5 (patch) | |
| tree | c77a78944c43691207b5ae26cc278352c078c6fb /Library/Formula | |
| parent | dc4245c33ba06f494c4f6e059fd51bc3877ad805 (diff) | |
| download | homebrew-e00e99632f859013274653063e086a048bf668f5.tar.bz2 | |
git: add test
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/git.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index ecc8a2fbc..847641ec8 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -80,4 +80,10 @@ class Git < Formula #{HOMEBREW_PREFIX}/share/git-core/contrib EOS end + + def test + HOMEBREW_REPOSITORY.cd do + `#{bin}/git ls-files -- bin`.chomp == 'bin/brew' + end + end end |
