Compare commits

...

2 commits

Author SHA1 Message Date
varconstant 78f65f8411
Merge b516e74458 into 6b5f577ebc 2024-04-03 17:10:34 -03:00
Varconst b516e74458 Child command context is not updated when global context changed #2077 2023-11-23 10:31:14 -05:00

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
}