homebrew-core/Formula/willgit.rb
Baptiste Fontaine c524823204 willgit: import from head-only
Closes #6339.

Signed-off-by: Baptiste Fontaine <b@ptistefontaine.fr>
2016-10-29 16:33:09 +02:00

22 lines
640 B
Ruby

class Willgit < Formula
desc "William's miscellaneous git tools"
homepage "http://git-wt-commit.rubyforge.org"
url "https://github.com/DanielVartanov/willgit/archive/1.0.0.tar.gz"
sha256 "3bb99d6ec2614a90f40962311daf51f393b3d0abfdb0f9e0a14ba7340b33a2c8"
head "https://github.com/DanielVartanov/willgit.git"
bottle :unneeded
def install
prefix.install "bin"
end
test do
system "git", "init"
(testpath/"README.md").write "# My Awesome Project"
system "git", "add", "README.md"
system "git", "commit", "-m", "init"
assert_equal "Local branch: master",
shell_output("git wtf").chomp
end
end