|
1 | 1 | class Jj < Formula |
2 | 2 | desc "Git-compatible distributed version control system" |
3 | 3 | homepage "https://github.com/jj-vcs/jj" |
4 | | - url "https://github.com/jj-vcs/jj/archive/refs/tags/v0.25.0.tar.gz" |
5 | | - sha256 "3a99528539e414a3373f24eb46a0f153d4e52f7035bb06df47bd317a19912ea3" |
| 4 | + url "https://github.com/jj-vcs/jj/archive/refs/tags/v0.26.0.tar.gz" |
| 5 | + sha256 "099eeb346f32a4968ebb8273566321eff2e6ca6a7de0c9dcfd7eee016b37cba1" |
6 | 6 | license "Apache-2.0" |
7 | | - revision 2 |
8 | 7 | head "https://github.com/martinvonz/jj.git", branch: "main" |
9 | 8 |
|
10 | 9 | bottle do |
@@ -42,15 +41,17 @@ def install |
42 | 41 | system "cargo", "install", *std_cargo_args(path: "cli") |
43 | 42 |
|
44 | 43 | generate_completions_from_executable(bin/"jj", shell_parameter_format: :clap) |
45 | | - |
46 | | - (man1/"jj.1").write Utils.safe_popen_read(bin/"jj", "util", "mangen") |
| 44 | + system bin/"jj", "util", "install-man-pages", man |
47 | 45 | end |
48 | 46 |
|
49 | 47 | test do |
50 | 48 | require "utils/linkage" |
51 | 49 |
|
52 | | - system bin/"jj", "init", "--git" |
53 | | - assert_predicate testpath/".jj", :exist? |
| 50 | + touch testpath/"README.md" |
| 51 | + system bin/"jj", "git", "init" |
| 52 | + system bin/"jj", "describe", "-m", "initial commit" |
| 53 | + assert_match "README.md", shell_output("#{bin}/jj file list") |
| 54 | + assert_match "initial commit", shell_output("#{bin}/jj log") |
54 | 55 |
|
55 | 56 | [ |
56 | 57 | Formula["libgit2"].opt_lib/shared_library("libgit2"), |
|
0 commit comments