blob: f1a0930759effcc1999949a058836707bb70bf5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
class GitFlow < Formula
homepage "https://github.com/nvie/gitflow"
# Use the tag instead of the tarball to get submodules
url "https://github.com/nvie/gitflow.git", :tag => "0.4.1"
head do
url "https://github.com/nvie/gitflow.git", :branch => "develop"
resource "completion" do
url "https://github.com/bobthecow/git-flow-completion.git", :branch => "develop"
end
end
resource "completion" do
url "https://github.com/bobthecow/git-flow-completion/archive/0.4.2.2.tar.gz"
sha1 "d6a041b22ebdfad40efd3dedafd84c020d3f4cb4"
end
conflicts_with "git-flow-avh"
def install
system "make", "prefix=#{libexec}", "install"
bin.write_exec_script libexec/"bin/git-flow"
resource("completion").stage do
bash_completion.install "git-flow-completion.bash"
zsh_completion.install "git-flow-completion.zsh"
end
end
test do
system "git", "flow", "init", "-d"
assert_equal "develop", shell_output("git rev-parse --abbrev-ref HEAD").strip
end
end
|