This commit is contained in:
varconstant 2024-04-26 16:59:29 +02:00 committed by GitHub
commit 4b9ebfffa0
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
}