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"
|
2015-07-27 14:01:24 +00:00
|
|
|
url "https://github.com/github/git-lfs/archive/v0.5.3.tar.gz"
|
|
|
|
sha256 "f4bddfc2a5b427f5a11afe621e9f0b039ab5588b81106153cf7785878b1194ab"
|
2015-04-08 19:17:39 +00:00
|
|
|
|
2015-04-08 19:35:28 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
2015-07-27 14:10:39 +00:00
|
|
|
sha256 "6afb84bae5e83a279ef0a8066c0b61fd40e05781e6c4776ee77fb972333626ee" => :yosemite
|
|
|
|
sha256 "aeb74184e39e1da4fd8c423e18ced3bda58007bbe801cb88b3b44b36f854bab4" => :mavericks
|
|
|
|
sha256 "7802d0702273c0d44e76288fada6eaed83c963a82a9885ab136bdd53b3bea276" => :mountain_lion
|
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
|
|
|
|
|
|
|
|
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
|