mirror of
https://github.com/spf13/cobra
synced 2024-11-14 01:37:10 +00:00
Merge b516e74458
into 6b5f577ebc
This commit is contained in:
commit
78f65f8411
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue