forked from necromant2005/homebrew-boneyard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
git-stree.rb
30 lines (26 loc) · 825 Bytes
/
git-stree.rb
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
class GitStree < Formula
desc "Git subtree helper command"
homepage "https://github.com/tdd/git-stree"
head "https://github.com/tdd/git-stree.git"
url "https://github.com/tdd/git-stree/archive/0.4.5.tar.gz"
sha256 "5504ac90871c73c92c21f5cd84b0bf956c521b237749e2b2dd699dbe0c096af8"
def install
bin.install "git-stree"
bash_completion.install "git-stree-completion.bash" => "git-stree"
end
test do
mkdir "mod" do
system "git", "init"
touch "HELLO"
system "git", "add", "HELLO"
system "git", "commit", "-m", "testing"
end
mkdir "container" do
system "git", "init"
touch ".gitignore"
system "git", "add", ".gitignore"
system "git", "commit", "-m", "testing"
system "git", "stree", "add", "mod", "-P", "mod", "../mod"
end
end
end