homebrew-core/Formula/git-lfs.rb

39 lines
1.1 KiB
Ruby
Raw Normal View History

class GitLfs < Formula
desc "Git extension for versioning large files"
homepage "https://github.com/github/git-lfs"
url "https://github.com/github/git-lfs/archive/v1.4.1.tar.gz"
sha256 "5c2b6640d965a0ed334c6a7e4a5e327c7543234d3f2a2c7879d5b9731ef82c4b"
2015-04-08 19:35:28 +00:00
bottle do
2015-09-12 00:10:41 +00:00
cellar :any_skip_relocation
2016-09-11 20:39:51 +00:00
sha256 "d293874293c57d6ed922f3193c1cf09a76c0867ae7153fa0eb85d22a497db299" => :sierra
2016-08-26 20:54:06 +00:00
sha256 "aa45170d657b4cec16d9aa793f0958db3b47b11cf9bc07fa2aaf31fccdc5324e" => :el_capitan
sha256 "519300efced3a82e219edc4a23aacf486212e2e0303ef29642e26bc7b656bfb9" => :yosemite
sha256 "b70269206360e38015f46b7838270921da2266f4358cba98c0ac7949ffa43d36" => :mavericks
2015-04-08 19:35:28 +00:00
end
depends_on "go" => :build
def install
system "./script/bootstrap"
bin.install "bin/git-lfs"
end
2016-08-18 19:39:51 +00:00
def caveats; <<-EOS.undent
Update your git config to finish installation:
# Update global git config
2016-08-18 19:39:51 +00:00
$ git lfs install
# Update system git config
2016-08-18 19:39:51 +00:00
$ git lfs install --system
EOS
end
test do
system "git", "init"
system "git", "lfs", "track", "test"
assert_match(/^test filter=lfs/, File.read(".gitattributes"))
end
end