aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/git-lfs.rb
blob: 13807b5e546a74cc5dad797b34de69d6984e347a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class GitLfs < Formula
  homepage "https://github.com/github/git-lfs"
  url "https://github.com/github/git-lfs/archive/v0.5.0.tar.gz"
  sha256 "70f17a594d51d1b92d2354a729f00546e9c1b2c93ff3b752e185c650c5442d06"

  depends_on "go" => :build

  def install
    system "./script/bootstrap"
    bin.install "bin/git-lfs"
  end

  test do
    system "git", "lfs", "track", "test"
    assert_match(/^test filter=lfs/, File.read(".gitattributes"))
  end
end