Re: [PATCH 1/1] submodule foreach: fix recursion of options

2019-06-12 Thread Eric Sunshine
On Wed, Jun 12, 2019 at 2:10 PM Morian Sonnet via GitGitGadget wrote: > [...] > . Add -- before the command to execute, such that now correctly > > git --super-prefix submodule--helper \ > foreach --recursive -- git reset --hard > > is called. > > Signed-off-by: Morian Sonnet > --- >

[PATCH 1/1] submodule foreach: fix recursion of options

2019-06-12 Thread Morian Sonnet via GitGitGadget
From: Morian Sonnet Calling git submodule foreach --recursive git reset --hard leads to an error stating that the option --hard is unknown to submodule--helper. Reasons: . Above call is internally translated into git submodule--helper foreach --recursive -- git reset --hard . After