mirror of
https://gitea.com/gitea/tea.git
synced 2025-09-01 09:28:30 +02:00
Fix test
This commit is contained in:
@ -89,8 +89,9 @@ var CmdRepoCreate = cli.Command{
|
||||
Usage: "select trust model (committer,collaborator,collaborator+committer)",
|
||||
},
|
||||
&cli.StringFlag{
|
||||
Name: "object-format",
|
||||
Usage: "select git object format (sha1,sha256)",
|
||||
Name: "object-format",
|
||||
Required: false,
|
||||
Usage: "select git object format (sha1,sha256)",
|
||||
},
|
||||
}, flags.LoginOutputFlags...),
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ func TestCreateRepoObjectFormat(t *testing.T) {
|
||||
Aliases: []string{"repo"},
|
||||
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)
|
||||
if tt.wantErr {
|
||||
|
Reference in New Issue
Block a user