homebrew-core/Formula/willgit.rb
Alex Dunn a3cb065f44
willgit: add conflict with git-utils
Closes #6423.

Closes #6425.

Signed-off-by: Alex Dunn <dunn.alex@gmail.com>
2016-10-30 17:51:01 -07:00

25 lines
735 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
conflicts_with "git-utils",
:because => "both install a `git-rank-contributors` script"
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