Skip to content

Commit 8840df2

Browse files
committed
Fix agentTaskCmd to use repoResolvingCmdFactory
`agent-task` uses smart base repo func to fix bug with resolving upstream instead of local repo.
1 parent c8152ed commit 8840df2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cmd/root/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) (*cobra.Command,
127127
cmd.AddCommand(versionCmd.NewCmdVersion(f, version, buildDate))
128128
cmd.AddCommand(accessibilityCmd.NewCmdAccessibility(f))
129129
cmd.AddCommand(actionsCmd.NewCmdActions(f))
130-
cmd.AddCommand(agentTaskCmd.NewCmdAgentTask(f))
131130
cmd.AddCommand(aliasCmd.NewCmdAlias(f))
132131
cmd.AddCommand(authCmd.NewCmdAuth(f))
133132
cmd.AddCommand(attestationCmd.NewCmdAttestation(f))
@@ -150,6 +149,7 @@ func NewCmdRoot(f *cmdutil.Factory, version, buildDate string) (*cobra.Command,
150149
repoResolvingCmdFactory := *f
151150
repoResolvingCmdFactory.BaseRepo = factory.SmartBaseRepoFunc(f)
152151

152+
cmd.AddCommand(agentTaskCmd.NewCmdAgentTask(&repoResolvingCmdFactory))
153153
cmd.AddCommand(browseCmd.NewCmdBrowse(&repoResolvingCmdFactory, nil))
154154
cmd.AddCommand(prCmd.NewCmdPR(&repoResolvingCmdFactory))
155155
cmd.AddCommand(orgCmd.NewCmdOrg(&repoResolvingCmdFactory))

0 commit comments

Comments
 (0)