1 class Willgit < Formula
2 desc "William's miscellaneous git tools"
3 homepage "https://github.com/DanielVartanov/willgit"
4 url "https://github.com/DanielVartanov/willgit/archive/refs/tags/1.0.0.tar.gz"
5 sha256 "3bb99d6ec2614a90f40962311daf51f393b3d0abfdb0f9e0a14ba7340b33a2c8"
7 head "https://github.com/DanielVartanov/willgit.git", branch: "master"
11 sha256 cellar: :any_skip_relocation, all: "50393beba0d169140488b806a2b4635dbd02a81f93bddb654e367f040b57f570"
14 uses_from_macos "ruby"
21 system "git", "init", "--initial-branch=main"
22 (testpath/"README.md").write "# BrewTest"
23 system "git", "add", "README.md"
24 system "git", "commit", "-m", "init"
25 assert_equal "Local branch: main", shell_output("git wtf").chomp