2015-04-08 19:17:39 +00:00
|
|
|
class GitLfs < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Git extension for versioning large files"
|
2015-04-08 19:17:39 +00:00
|
|
|
homepage "https://github.com/github/git-lfs"
|
2016-08-26 20:15:56 +00:00
|
|
|
url "https://github.com/github/git-lfs/archive/v1.4.1.tar.gz"
|
|
|
|
sha256 "5c2b6640d965a0ed334c6a7e4a5e327c7543234d3f2a2c7879d5b9731ef82c4b"
|
2015-04-08 19:17:39 +00:00
|
|
|
|
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
|
|
|
|
|
2015-04-08 19:17:39 +00:00
|
|
|
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:
|
|
|
|
|
2016-08-20 12:50:31 +00:00
|
|
|
# Update global git config
|
2016-08-18 19:39:51 +00:00
|
|
|
$ git lfs install
|
|
|
|
|
2016-08-20 12:50:31 +00:00
|
|
|
# Update system git config
|
2016-08-18 19:39:51 +00:00
|
|
|
$ git lfs install --system
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
2015-04-08 19:17:39 +00:00
|
|
|
test do
|
2015-07-03 11:10:57 +00:00
|
|
|
system "git", "init"
|
2015-04-08 19:17:39 +00:00
|
|
|
system "git", "lfs", "track", "test"
|
|
|
|
assert_match(/^test filter=lfs/, File.read(".gitattributes"))
|
|
|
|
end
|
|
|
|
end
|