This commit is contained in:
varconstant 2024-04-03 17:10:34 -03:00 committed by GitHub
commit 78f65f8411
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1110,7 +1110,7 @@ func (c *Command) ExecuteC() (cmd *Command, err error) {
// We have to pass global context to children command
// if context is present on the parent command.
if cmd.ctx == nil {
if c.ctx != nil {
cmd.ctx = c.ctx
}