This commit is contained in:
Lunny Xiao
2025-08-10 19:11:28 -07:00
parent 03c2dfdaec
commit 93033237dd
2 changed files with 4 additions and 3 deletions

View File

@ -89,8 +89,9 @@ var CmdRepoCreate = cli.Command{
Usage: "select trust model (committer,collaborator,collaborator+committer)", Usage: "select trust model (committer,collaborator,collaborator+committer)",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: "object-format", Name: "object-format",
Usage: "select git object format (sha1,sha256)", Required: false,
Usage: "select git object format (sha1,sha256)",
}, },
}, flags.LoginOutputFlags...), }, flags.LoginOutputFlags...),
} }

View File

@ -56,7 +56,7 @@ func TestCreateRepoObjectFormat(t *testing.T) {
Aliases: []string{"repo"}, Aliases: []string{"repo"},
Commands: []*cli.Command{&CmdRepoCreate}, Commands: []*cli.Command{&CmdRepoCreate},
} }
args := append([]string{"tea", "repos", "create"}, tt.args...) args := append([]string{"repos", "create"}, tt.args...)
err := reposCmd.Run(context.Background(), args) err := reposCmd.Run(context.Background(), args)
if tt.wantErr { if tt.wantErr {