git-lfs 0.5.2

Closes Homebrew/homebrew#41290.

Closes Homebrew/homebrew#41316.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-07-03 12:10:57 +01:00
parent f0895c243f
commit e31a6ced4a

View file

@ -1,8 +1,8 @@
class GitLfs < Formula class GitLfs < Formula
desc "Git extension for versioning large files" desc "Git extension for versioning large files"
homepage "https://github.com/github/git-lfs" homepage "https://github.com/github/git-lfs"
url "https://github.com/github/git-lfs/archive/v0.5.1.tar.gz" url "https://github.com/github/git-lfs/archive/v0.5.2.tar.gz"
sha256 "8cefb145e47b2e582fc284d1fde5486f30e9c754f9d85d12db61c7397c797931" sha256 "c7453d15fd817c50c5bff86e5bbd45781b3a7213cd70de9ff8f9240cf04fb626"
bottle do bottle do
cellar :any cellar :any
@ -14,11 +14,15 @@ class GitLfs < Formula
depends_on "go" => :build depends_on "go" => :build
def install def install
ENV["GOPATH"] = buildpath
mkdir_p buildpath/"src/github.com/github"
ln_s buildpath, buildpath/"src/github.com/github/git-lfs"
system "./script/bootstrap" system "./script/bootstrap"
bin.install "bin/git-lfs" bin.install "bin/git-lfs"
end end
test do test do
system "git", "init"
system "git", "lfs", "track", "test" system "git", "lfs", "track", "test"
assert_match(/^test filter=lfs/, File.read(".gitattributes")) assert_match(/^test filter=lfs/, File.read(".gitattributes"))
end end